Module etensor

Source

Structs§

Tensor
A minimal Tensor type whose API is a source compatible subset of at::Tensor.
TensorImpl
Manages the storage behind an ETensor (torch::executor::Tensor).

Enums§

ScalarType
Data types (dtypes) that can be used as element types in ETensors.

Functions§

TensorImpl_TensorImpl
@param type The type of the data (int, float, bool). @param dim Number of dimensions, and the length of the sizes array. @param sizes Sizes of the tensor at each dimension. Must contain dim entries. @param data Pointer to the data, whose size is determined by type, dim, and sizes. The tensor will not own this memory. @param dim_order Order in which dimensions are laid out in memory. @param strides Strides of the tensor at each dimension. Must contain dim entries. @param dynamism The mutability of the shape of the tensor.
TensorImpl_element_size
Returns the size in bytes of one element of the tensor.
TensorImpl_nbytes
Returns the size of the tensor in bytes.

Type Aliases§

TensorImpl_DimOrderType
The type used for elements of dim_order().
TensorImpl_SizesType
The type used for elements of sizes().
TensorImpl_StridesType
The type used for elements of strides().
Tensor_DimOrderType
The type used for elements of dim_order().
Tensor_SizesType
The type used for elements of sizes().
Tensor_StridesType
The type used for elements of strides().