class
FoldedVariable
PythonA resource variable the FOLDINVARIANTVARIABLES transform replaced with the constant it always holds.
FoldedVariable()A resource variable the FOLD_INVARIANT_VARIABLES transform replaced with the constant it always holds.
attribute
variable
Pythonvariable: str = Field(..., description='The resource tensor that held the variable')attribute
constants
Pythonconstants: list[str] = Field(..., description='The former read outputs, now constants holding the initial value')attribute
nbytes
Pythonnbytes: int = Field(..., ge=0, description='Persistent bytes the variable no longer occupies')attribute
assignment
Pythonassignment: Annotated[str, _Members(*_ASSIGNMENTS)] = Field(..., description="none: the main graph never assigned the variable; clip: every assignment stored a MAXIMUM/MINIMUM chain of the variable's own read, with constant bounds and one quantization, that returns the initial value unchanged")attribute
reads
Pythonreads: int = Field(..., ge=1, description='READ_VARIABLE operators removed')attribute
assigns
Pythonassigns: int = Field(..., ge=0, description='ASSIGN_VARIABLE operators removed')