refreshStep method
Patches the compiled tape with the current step and advances it. Call this once per training step, right before SeqModel replays the optimize tape.
Implementation
@override
void refreshStep(CommandBuffer tape) {
for (int i = 0; i < _stepOffsets.length; i = i + 1) {
tape.patchInt(_stepOffsets[i], currentStep);
}
currentStep = currentStep + 1;
}