API reference

python:astx:astx.tensor.TensorView

class TensorView

TensorView(base: astx.AST, *, shape: Sequence[int], strides: Sequence[int] | None = None, offset_bytes: int = 0)

Source: packages/astx/src/astx/tensor.py:175

Internal Tensor view node.

Build one shallow tensor view by reusing the base storage and replacing the logical shape, strides, and offset metadata.

Attributes

Methods

Attributes

Search documentation

Type to search.