Send feedback
litert:: Tensor Summary Inheritance Inherits from:
litert::internal::NonOwnedHandle< LiteRtTensor >
Constructors and Destructors
Tensor (LiteRtTensor tensor)
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
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
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
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-14 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-14 UTC."],[],[]]