Skip to main content

Module tensor

Module tensor 

Source
Expand description

Tensor, an owned n-dimensional array, and TensorView, a borrowed one.

Structs§

CPUNDAlloc
An NDAllocator for CPU memory from the Rust global allocator, aligned to 64 bytes.
Tensor
A reference-counted n-dimensional array, passed across languages as ffi.Tensor and exchanged with other frameworks through DLPack.
TensorObj
The object behind a Tensor: an object header followed by a DLTensor.
TensorView
A non-owning view of a tensor: a pointer to a DLTensor.

Traits§

DLTensorExt
Size queries on a DLTensor.
NDAllocator
Allocates the data buffer of a tensor made by Tensor::from_nd_alloc.