ignite icon indicating copy to clipboard operation
ignite copied to clipboard

Agnostic Engine configured by specific handlers

Open sdesrozis opened this issue 4 years ago • 0 comments

🚀 Feature

As discussed https://github.com/pytorch/ignite/pull/1919#issuecomment-821959142, some specific features are hardcoded in the Engine (reset of batch/output for instance). Usually it is internal concerns and therefore well encapsulated in the Engine.

However, the Engine is a use-agnostic concept that aims to iterate collections (typically datasets) by applying a function (i.e. the training_step) and providing an Event handler for extensibility. In order to offer even more flexibility, the idea here is to provide an internal configuration of the Engine using specific internal-use handlers.

The general aim is to have the most generic engine possible and to make maximum use of the Event mechanics associated with the Engine.

sdesrozis avatar Apr 19 '21 08:04 sdesrozis