How to change learning rate with c++?

how to use lr_schedule with c++ API ? for example: if I want to change the lr every 3 epoch, how to make it.
torch::optim::SGD optim(model->parameters(), torch::optim::SGDOptions(1e-3).momentum(0.9));

I find a way that directly changing ‘optim.options.learning_rate_’ by custom.

Hi @zhijie1996, could you post your solution here? Would be awesome :slight_smile: