To continue that question, when we initialize a scheduler like

scheduler = torch.optim.lr_scheduler.ExponentialLR(optimizer1,
gamma=0.999,
last_epoch=100)

‘Last_epoch’ is an argument for users which means we can specify it as any number instead of -1.
If we can’t even assign it to other numbers when initialize, isn’t this arg redundant?
I prefer a design that can automatically specify epoch state with ‘last_epoch’ arg.