public override forwardTraining(inputs as NDArray<T>) as LayerPass<T>
Samples a fresh mask and retains it only in the returned context.
| Parameter | Description |
|---|---|
inputs | Batch tensor; never modified. |
Output and one byte per element of keep flags, or identity for rate=0.
context = dropout.forwardTraining(batch)