Skip to main content

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

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