litert::Tensor

Summary

Inheritance

Inherits from: litert::internal::NonOwnedHandle< LiteRtTensor >

Constructors and Destructors

Tensor(LiteRtTensor tensor)

Public types

TensorUses using
absl::InlinedVector< TensorUse, kExpectedMaxNumOfTensorUses >

Public functions

DefiningOp() const
std::optional< LiteRtTensorDefiningOp >
ElementType() const
enum ElementType
HasQuantization() const
bool
HasWeights() const
bool
IsConstant() const
bool
IsSubgraphInput() const
bool
IsSubgraphOutput() const
bool
Name() const
absl::string_view
PerChannelQuantization() const
LiteRtQuantizationPerChannel
PerTensorQuantization() const
LiteRtQuantizationPerTensor
QTypeId() const
LiteRtQuantizationTypeId
RankedTensorType() const
TensorIndex() const
std::uint32_t
TypeId() const
LiteRtTensorTypeId
UnrankedTensorType() const
Expected< LiteRtUnrankedTensorType >
Uses() const
TensorUses
Weights() const
class Weights
WeightsData() const
Expected< absl::Span< const T > >

Structs

litert::Tensor::TensorUse

Public types

TensorUses

absl::InlinedVector< TensorUse, kExpectedMaxNumOfTensorUses > TensorUses

Public functions

DefiningOp

std::optional< LiteRtTensorDefiningOp > DefiningOp() const 

ElementType

enum ElementType ElementType() const 

HasQuantization

bool HasQuantization() const 

HasWeights

bool HasWeights() const 

IsConstant

bool IsConstant() const 

IsSubgraphInput

bool IsSubgraphInput() const 

IsSubgraphOutput

bool IsSubgraphOutput() const 

Name

absl::string_view Name() const 

PerChannelQuantization

LiteRtQuantizationPerChannel PerChannelQuantization() const 

PerTensorQuantization

LiteRtQuantizationPerTensor PerTensorQuantization() const 

QTypeId

LiteRtQuantizationTypeId QTypeId() const 

RankedTensorType

Expected< class RankedTensorType > RankedTensorType() const 

Tensor

 Tensor(
  LiteRtTensor tensor
)

TensorIndex

std::uint32_t TensorIndex() const 

TypeId

LiteRtTensorTypeId TypeId() const 

UnrankedTensorType

Expected< LiteRtUnrankedTensorType > UnrankedTensorType() const 

Uses

TensorUses Uses() const 

Weights

class Weights Weights() const 

WeightsData

Expected< absl::Span< const T > > WeightsData() const