pytorch_pfn_extras.training.triggers.TimeTrigger¶
- class pytorch_pfn_extras.training.triggers.TimeTrigger(period)¶
Trigger based on a fixed time interval.
This trigger accepts iterations with a given interval time.
- Parameters
period (float) – Interval time. It is given in seconds.
- Return type
None
- __init__(period)¶
- Parameters
period (float) –
- Return type
None
Methods
__init__
(period)load_state_dict
(to_load)may_fire
(iteration, epoch_len)Flags if the trigger may fire at the current iteration
state_dict
()