# helia_aot.optimization.schema.FoldedVariable

## helia_aot.optimization.schema.FoldedVariable

`class` · `python`

```python
FoldedVariable()
```

A resource variable the FOLD_INVARIANT_VARIABLES transform replaced with the constant it always holds.

Source: `helia_aot/optimization/schema.py:899`

### helia_aot.optimization.schema.FoldedVariable.variable

`attribute` · `python`

```python
variable: str = Field(..., description='The resource tensor that held the variable')
```

Source: `helia_aot/optimization/schema.py:902`

### helia_aot.optimization.schema.FoldedVariable.constants

`attribute` · `python`

```python
constants: list[str] = Field(..., description='The former read outputs, now constants holding the initial value')
```

Source: `helia_aot/optimization/schema.py:903`

### helia_aot.optimization.schema.FoldedVariable.nbytes

`attribute` · `python`

```python
nbytes: int = Field(..., ge=0, description='Persistent bytes the variable no longer occupies')
```

Source: `helia_aot/optimization/schema.py:904`

### helia_aot.optimization.schema.FoldedVariable.assignment

`attribute` · `python`

```python
assignment: 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")
```

Source: `helia_aot/optimization/schema.py:905`

### helia_aot.optimization.schema.FoldedVariable.reads

`attribute` · `python`

```python
reads: int = Field(..., ge=1, description='READ_VARIABLE operators removed')
```

Source: `helia_aot/optimization/schema.py:913`

### helia_aot.optimization.schema.FoldedVariable.assigns

`attribute` · `python`

```python
assigns: int = Field(..., ge=0, description='ASSIGN_VARIABLE operators removed')
```

Source: `helia_aot/optimization/schema.py:914`
