use-ml-tensor 0.0.1

Tensor shape and metadata primitives for RustUse machine-learning workflows.
Documentation
  • Coverage
  • 1.32%
    1 out of 76 items documented1 out of 29 items with examples
  • Size
  • Source code size: 12.15 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.05 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 3s Average build duration of successful builds.
  • all releases: 3s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-ml
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-ml-tensor

Tensor shape and metadata primitives for RustUse machine-learning workflows.

Experimental

use-ml-tensor is experimental while use-ml remains below 0.3.0.

Example

use use_ml_tensor::{TensorDType, TensorShape};

let shape = TensorShape::new([2, 3, 4])?;

assert_eq!(shape.rank(), 3);
assert_eq!(shape.num_elements(), Some(24));
assert_eq!(TensorDType::Float32.as_str(), "float32");
# Ok::<(), use_ml_tensor::TensorShapeError>(())

Scope

  • Tensor shape, dimension, rank, and axis metadata.
  • Dtype, layout, device-kind, and memory-format labels.
  • Checked shape helpers such as rank and element-count metadata.

Non-goals

  • Tensor math, autograd, model execution, tensor allocation, or framework bindings.
  • Device APIs, runtime scheduling, kernels, CUDA, ONNX Runtime, or data movement.

License

Licensed under either Apache-2.0 or MIT.