API reference
python:astx:astx.tensor.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:121
Initialize one Tensor literal.
Parameters
-
values — Type: Sequence[astx.AST]
-
element_type — Type: astx.DataType
-
shape — Type: Sequence[int]
-
strides — Type: Sequence[int] | None
-
offset_bytes — Type: int