API reference
python:astx:astx.TensorShape
class TensorShape
TensorShape(base: astx.AST, axis: int)
Source: packages/astx/src/astx/tensor.py:364
Declared as: python:astx:astx.tensor.TensorShape
Internal Tensor shape-entry query.
Attributes
-
base — Base value or declaration.; Type: astx.AST
-
axis — Axis selected by the operation.; Type: int
-
type_ — Type associated with this expression.; Type: astx.Int64
-
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 shape query.
-
get_struct — Return the structured representation of the shape query.