You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
model=Net()
sgd=optim.SGD(model, 0.001, 0.9, 0.0005, optim.Regularization_Method.L2)
# feed some date to the model, then get the lossloss= ...
sgd.step(loss) # backward and update parameters in the model
model=Net()
sgd=optim.ADAM(model, 0.001)
# feed some date to the model, then get the lossloss= ...
sgd.step(loss) # backward and update parameters in the model