Fix CLI snippet in the docs (#12275)
This commit is contained in:
parent
7ee690758c
commit
bc812077c4
|
@ -891,6 +891,7 @@ If you need to customize the learning rate scheduler configuration, you can do s
|
|||
.. testcode::
|
||||
|
||||
class MyLightningCLI(LightningCLI):
|
||||
@staticmethod
|
||||
def configure_optimizers(lightning_module, optimizer, lr_scheduler=None):
|
||||
return ...
|
||||
|
||||
|
|
Loading…
Reference in New Issue