Shortcuts

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
Returns

global step based on provided engine

Return type

Callable