API reference
python:astx:astx.tensor.TensorType
class TensorType
TensorType(element_type: astx.DataType | None = None, *, shape: Sequence[int] | None = None)
Source: packages/astx/src/astx/tensor.py:41
Internal Tensor semantic type.
Represent the homogeneous N-dimensional tensor abstraction while reusing the canonical buffer/view representation during lowering.
Attributes
-
element_type — Type: astx.DataType | None
-
shape — Type: tuple[int, Ellipsis] | None
Methods
Attributes
-
shape —