Trigger invoked at specified point(s) of iterations or epochs.
This trigger accepts iterations or epochs indicated by given point(s). There are two ways to specify the point(s): iteration and epoch.
iterationmeans the number of updates, while
epochmeans the number of sweeps over the training dataset. Fractional values are allowed if the point is a number of epochs; the trigger uses the
epoch_detailattributes defined by the updater.
Decides whether the extension should be called on this iteration.
Parameters: trainer (Trainer) – Trainer object that this trigger is associated with. The updater associated with this trainer is used to determine if the trigger should fire. Returns: True if the corresponding extension should be invoked in this iteration. Return type: bool