Expand description
Tensor, an owned n-dimensional array, and TensorView, a borrowed one.
Structs§
- CPUND
Alloc - An
NDAllocatorfor CPU memory from the Rust global allocator, aligned to 64 bytes. - Tensor
- A reference-counted n-dimensional array, passed across languages as
ffi.Tensorand exchanged with other frameworks through DLPack. - Tensor
Obj - The object behind a
Tensor: an object header followed by aDLTensor. - Tensor
View - A non-owning view of a tensor: a pointer to a
DLTensor.
Traits§
- DLTensor
Ext - Size queries on a
DLTensor. - NDAllocator
- Allocates the data buffer of a tensor made by
Tensor::from_nd_alloc.