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

Methods

Attributes

Search documentation

Type to search.