There was an error while loading. Please reload this page.
Generated with Grok Build: Grok 4.5 · xAI Imagine (/imagine)
/imagine
src/types.rs
DType
TensorData
Vec<f32>
Vec<f64>
Vec<i64>
Vec<bool>
Tensor
Dense row-major (C-order) shape + typed data. Shape/data private to preserve product(shape) == len(data).
product(shape) == len(data)
Constructors: from_f32, from_f64, from_i64, etc. (return Result on length mismatch).
from_f32
from_f64
from_i64
Result
On HDF5 read, narrower integer types widen to i64; float widths preserved.
MetadataMap / MetadataValue — free-form key/value (strings, numbers, lists, tensors). Keys must be legal HDF5 link names when writing.
MetadataMap
MetadataValue
Last updated: July 29, 2026 Updated by: Grok Build: Grok 4.5 Package tip reference: df72fc9 (main)
df72fc9