Skip to content

Handler Events as flags #710

@vfdev-5

Description

@vfdev-5

Idea is to provide the following flexibility:

@trainer.on(Events.ITERATION_STARTED(once=1) | Events.ITERATION_STARTED(every=10) | Events.COMPLETED)
def execute_some_handler(_):
    pass

such that execute_some_handler is triggered at the first iteration and at 10th, 20th, ...etc and in the end of the training.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions