Skip to content

Misleading documentation for OneCycleLR, LambdaLR #9300

@cowwoc

Description

@cowwoc

Version 1.4.4

Per #4929 (comment) OneCycleLR, LambdaLR require configuration "interval": "step" which should be set as follows:

  'lr_scheduler': {
          'scheduler': scheduler, 
          'interval': 'step'
  }

But https://pytorch-lightning.readthedocs.io/en/latest/api/pytorch_lightning.core.lightning.html#pytorch_lightning.core.lightning.LightningModule.configure_optimizers implies it should be set as follows:

  'lr_scheduler': scheduler, 
  'interval': 'step'

I can confirm the first approach works. The documentation in the second link should be reviewed. I suspect it is incorrect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation related

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions