Send feedback
litert:: TensorBufferRequirements
#include <litert_tensor_buffer_requirements.h>
Represents the requirements for allocating a TensorBuffer .
Summary This class is the C++ equivalent of LiteRtTensorBufferRequirements and is typically specified by a hardware accelerator for a given I/O tensor.
Inheritance Inherits from: internal::Handle< LiteRtTensorBufferRequirements, LiteRtDestroyTensorBufferRequirements >
Public static functions
Create (absl::Span< const TensorBufferType > buffer_types, size_t buffer_size, absl::Span< const uint32_t > strides, OwnHandle owned)
CreateWithAlignment (absl::Span< const TensorBufferType > buffer_types, size_t buffer_size, size_t alignment, absl::Span< const uint32_t > strides, OwnHandle owned)
WrapCObject (LiteRtTensorBufferRequirements requirements, OwnHandle owned)
Public functions
Alignment
Expected < size_t > Alignment () const
BufferSize
Expected < size_t > BufferSize () const
Strides
Expected < absl :: Span < const uint32_t > > Strides () const
SupportedTypes
Expected < std :: vector < TensorBufferType > > SupportedTypes () const
TensorBufferRequirements
TensorBufferRequirements()=default
Public static functions
Create
Expected < TensorBufferRequirements > Create (
absl :: Span < const TensorBufferType > buffer_types ,
size_t buffer_size ,
absl :: Span < const uint32_t > strides ,
OwnHandle owned
)
CreateWithAlignment
Expected < TensorBufferRequirements > CreateWithAlignment (
absl :: Span < const TensorBufferType > buffer_types ,
size_t buffer_size ,
size_t alignment ,
absl :: Span < const uint32_t > strides ,
OwnHandle owned
)
Friend classes
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 2026-01-06 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 2026-01-06 UTC."],[],[]]