Switch from LBFGS to ADAM optimizer in the middle of training in pytorch

前端 未结 0 932
有刺的猬
有刺的猬 2021-01-24 11:32

I want to switch the optimizer in the middle of the training from LBFGS to Adam. Below is the code that I wrote.

optimizer = optim.LBFGS(model.parameters(), lr=0.         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题