API reference
python:astx:astx.TensorLiteral.__init__
method __init__
__init__(values: Sequence[astx.AST], *, element_type: astx.DataType, shape: Sequence[int], strides: Sequence[int] | None = None, offset_bytes: int = 0) -> None
Source: packages/astx/src/astx/tensor.py:105
Declared as: python:astx:astx.tensor.TensorLiteral.__init__
Initialize one Tensor literal.
Parameters
-
values — Values to process, in order.; Type: Sequence[astx.AST]
-
element_type — Type of each element.; Type: astx.DataType
-
shape — Declared dimensions or result shape.; Type: Sequence[int]
-
strides — Strides.; Type: Sequence[int] | None
-
offset_bytes — Offset bytes.; Type: int
Returns
Type: None