Skip to main content
Log in

Mojo package

tensor

Implements the MAX tensor package.

Modules

  • managed_tensor_slice: Implements the ManagedTensorSlice type - a view of a tensor that doesn't own the underlying data. This type is used to build custom graph operations.
  • tensor: Implements the Tensor type - a tensor type which owns its underlying data.
  • tensor_like: Implements the TensorLike trait, used to share code for objects that behave like tensors.
  • tensor_shape: Implements the TensorShape type - a space efficient representation of a tensor shape.
  • tensor_spec: Implements the TensorSpec type - a space efficient representation of a tensor shape and dtype.