Skip to main content

Module tensor

Module tensor 

Source
Expand description

A minimal dense n-dimensional array.

WebDataset stores tensors in two formats: NumPy’s .npy and the 8-byte aligned .ten (“tenbin”) format. Both are described by an element type, a shape, and a blob of C-ordered, native-endian element data, which is exactly what Tensor holds. Keeping the representation this simple means the crate does not force a particular array library on its users while still allowing zero-copy round trips through the archive formats.

Structs§

Tensor
A dense, C-ordered array of numbers.

Enums§

DType
The element type of a Tensor.