Skip to main content
Log in

Mojo package

tensor

APIs to create and manage tensors in a graph.

Modules

  • io_spec:
  • 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_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.