API reference
python:astx:astx.TensorStore
class TensorStore
TensorStore(base: astx.AST, indices: Sequence[astx.AST], value: astx.AST)
Source: packages/astx/src/astx/tensor.py:267
Declared as: python:astx:astx.tensor.TensorStore
Internal Tensor indexed store.
Stores one scalar through tensor shape and stride metadata. Arrow C++ backed tensors remain readonly in this phase, but the node keeps the surface aligned with future writable views.
Attributes
-
base — Base value or declaration.; Type: astx.AST
-
indices — Indices.; Type: list[astx.AST]
-
value — Stored value.; Type: astx.AST
-
type_ — Type associated with this expression.; Type: astx.Int32
-
loc — Type: SourceLocation
-
kind — Type: ASTKind
-
comment — Type: str
-
parent — Type: Optional[ASTNodes]
-
ref — Type: str
-
nbytes — Type: int
-
name — Type: str
-
_tmp_id — Type: int
Methods
-
__init__ — Initialize one Tensor indexed store.
-
get_struct — Return the structured representation of the indexed store.