MLArrayType
class NatML.Types.MLArrayType : MLFeatureType
This feature type describes multidimensional arrays or tensors.
Creating the Type
An array type is created with a data type and a corresponding shape.
Even though array types can be created without a shape
, this should be avoided.
There is another constructor which accepts a feature name:
Inspecting the Type
Refer to the MLFeatureType
class for more information.
Inspecting the Shape
The array type provides the shape of its corresponding feature.
Dimensions
The type provides a convenience property for the number of dimensions which the array feature has.
This is always the number of elements in the shape
.
Element Count
The type provides a convenience property for the number of elements which the array feature has.
This is always the product of the elements in the shape
.
Last updated