Skip to main content
Log in

Mojo module

tensor_spec

Implements the TensorSpec type.

You can import these APIs from the max.tensor package. For example:

from max.tensor import TensorSpec
from max.tensor import TensorSpec

Structs

  • RuntimeTensorSpec:
  • TensorSpec: A space efficient representation of a tensor shape and dtype. This struct implements value semantics and owns its underlying data.