API reference
python:astx:astx.TensorRetain
class TensorRetain
TensorRetain(base: astx.AST)
Source: packages/astx/src/astx/tensor.py:623
Declared as: python:astx:astx.tensor.TensorRetain
Internal explicit retain for Tensor-backed storage.
Attributes
-
base — Type: astx.AST
-
type_ — Type: astx.Int32
Methods
-
__init__ — Initialize one Tensor retain helper.
-
get_struct — Return the structured representation of the retain helper.