vortex_torch.cache.fill¶
Classes
|
In-place page-wise fill with a scalar. |
- class Fill(alpha=0.0)[source]¶
Bases:
vOpIn-place page-wise fill with a scalar.
- Math:
- \[Y_{b,n,d} = \alpha \quad\text{(over the selected page tiles).}\]
- __init__:
Fill(alpha=0.0)— scalar fill value \(\alpha\).- __call__:
op(x, loc=loc, ctx=ctx)— overwrites the page tiles ofx(PAGED) atlocwith \(\alpha\). A pure producer: its output isx(used e.g. to zero a cache field beforevortex_torch.indexer.Save/vortex_torch.indexer.Load).- Note:
PAGEDinput only.- Parameters:
alpha (float)