Skip to content

Number of steps per epoch #5449

@celsofranssa

Description

@celsofranssa

Some learning rate schedulers as OneCycleLR requires the number of steps per epoch.

Then, how to get the number of steps in configure_optimizers(self) scope?

Note: Training data is given during Trainer instantiation:

# training
    dm.setup('fit')
    trainer.fit(model, datamodule=dm)

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requestedwaiting on authorWaiting on user action, correction, or update

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions