Python class
TensorSpec
TensorSpecβ
class max.engine.TensorSpec
Bases: object
Defines the properties of a tensor, including its name, shape and data type.
For usage examples, see Model.input_metadata.
dtypeβ
property dtype
A tensor data type.
nameβ
property name
A tensor name.
shapeβ
property shape
The shape of the tensor as a list of integers.
If a dimension size is unknown/dynamic (such as the batch size), its
value is None.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!