You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since LR_SchedulerInterface is just an interface, you don't need to call super().init in the implementation. The NotImplementedError occurs because it tries to initialize an interface class.
Additionally, two other changes are needed:
ModelInterface expects the step function to have a positional argument named "loss," not "metrics."
get_last_lr should return a list to handle cases with multiple parameter groups.
Sorry about the docstring incorrectly stating that the return value should be a float; it will be updated. This version of your scheduler should work fine:
Bug description
Trying to set a custom learning rate scheduler with the
set_lr_scheduler_class
throws anNotImplemented
error.To Reproduce
Expected behavior
No error.
Version (please complete the following information):
Additional context
I see in the source code that this isn't implemented. Would be nice if it was.
The text was updated successfully, but these errors were encountered: