litert::SimpleTensor

#include <litert_model.h>

A C++ wrapper for LiteRtTensor with limited functionality.

Summary

Inheritance

Inherits from: internal::NonOwnedHandle< LiteRtTensor >

Constructors and Destructors

SimpleTensor(LiteRtTensor tensor)

Public functions

ElementType() const
ElementType
HasType(const RankedTensorType & type) const
bool
HasType(const LiteRtRankedTensorType & type) const
bool
Name() const
absl::string_view
RankedTensorType() const
Expected< RankedTensorType >
TensorIndex() const
std::uint32_t
TypeId() const
LiteRtTensorTypeId
UnrankedTensorType() const
Expected< LiteRtUnrankedTensorType >

Public functions

ElementType

ElementType ElementType() const 

HasType

bool HasType(
  const RankedTensorType & type
) const 

HasType

bool HasType(
  const LiteRtRankedTensorType & type
) const 

Name

absl::string_view Name() const 

RankedTensorType

Expected< RankedTensorType > RankedTensorType() const 

SimpleTensor

 SimpleTensor(
  LiteRtTensor tensor
)

TensorIndex

std::uint32_t TensorIndex() const 

TypeId

LiteRtTensorTypeId TypeId() const 

UnrankedTensorType

Expected< LiteRtUnrankedTensorType > UnrankedTensorType() const