API reference
python:astx:astx.TensorIndex
class TensorIndex
TensorIndex(base: astx.AST, indices: Sequence[astx.AST])
Source: packages/astx/src/astx/tensor.py:215
Declared as: python:astx:astx.tensor.TensorIndex
Internal Tensor indexed read.
Attributes
-
base — Base value or declaration.; Type: astx.AST
-
indices — Indices.; Type: list[astx.AST]
-
type_ — Type associated with this expression.; Type: astx.DataType
-
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 read.
-
get_struct — Return the structured representation of the indexed read.