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.