Class IBufferAttributes

Class Documentation

class IBufferAttributes

Public Functions

size_t getElementSize() const noexcept
UserBufferEncoding::ElementType_t getEncodingType() const noexcept

Gets the element’s encoding type.

Returns

encoding type

TensorShape getDims() const

Gets the number of elements in each dimension.

Returns

Dimension size, in terms of number of elements

TensorShape getAlignments() const

Gets the alignment requirement of each dimension.

Alignment per each dimension is expressed as an multiple, for example, if one particular dimension can accept multiples of 8, the alignment will be 8.

Returns

Alignment in each dimension, in terms of multiple of number of elements

UserBufferEncoding *getEncoding() const

Gets the buffer encoding returned from the network responsible for generating this buffer. Depending on the encoding type, this will be an instance of an encoding type specific derived class.

Returns

Derived user buffer encoding object.