global_step_from_engine¶
-
ignite.handlers.
global_step_from_engine
(engine, custom_event_name=None)[source]¶ Helper method to setup global_step_transform function using another engine. This can be helpful for logging trainer epoch/iteration while output handler is attached to an evaluator.
- Parameters
engine (ignite.engine.engine.Engine) – engine which state is used to provide the global step
custom_event_name (Optional[ignite.engine.events.Events]) – registered event name. Optional argument, event name to use.
- Returns
global step based on provided engine
- Return type
Callable