vortex_torch.cache.fill

Classes

Fill([alpha])

In-place page-wise fill with a scalar.

class Fill(alpha=0.0)[source]

Bases: vOp

In-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 of x (PAGED) at loc with \(\alpha\). A pure producer: its output is x (used e.g. to zero a cache field before vortex_torch.indexer.Save / vortex_torch.indexer.Load).

Note:

PAGED input only.

Parameters:

alpha (float)