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:38
Internal Tensor semantic type.
Represent the homogeneous N-dimensional tensor abstraction while reusing the canonical buffer/view representation during lowering.
Attributes
-
element_type — Type of each element.; Type: astx.DataType | None
-
shape — Declared dimensions or result shape.; Type: tuple[int, ...] | None
-
loc — Type: SourceLocation
-
kind — Type: ASTKind
-
comment — Type: str
-
parent — Type: Optional[ASTNodes]
-
ref — Type: str
-
nbytes — Type: int
-
type_ — Type: ExprType
-
name — Type: str
-
_tmp_id — Type: int
Methods
Attributes
-
shape —