I am studying the example in this link, but I am not sure how the scheduler function is receiving both the epoch and learning rate (lr). How are they being passed? And how can I pass more arguments?
I tried following this example and I received an error that says scheduler received an extra argument "lr", so I am not sure how to fix that.