API reference
python:astx:astx.tensor.TensorView.__init__
method __init__
__init__(base: astx.AST, *, shape: Sequence[int], strides: Sequence[int] | None = None, offset_bytes: int = 0) -> None
Source: packages/astx/src/astx/tensor.py:201
Initialize one Tensor view.
Parameters
-
base — Type: astx.AST
-
shape — Type: Sequence[int]
-
strides — Type: Sequence[int] | None
-
offset_bytes — Type: int