!9273 fix bug in example of Lamb

From: @wangnan39
Reviewed-by: @zh_qh,@kingxian
Signed-off-by: @kingxian
This commit is contained in:
mindspore-ci-bot 2020-12-01 21:27:14 +08:00 committed by Gitee
commit 9cf4d0d0dc
1 changed files with 1 additions and 1 deletions

View File

@ -241,7 +241,7 @@ class Lamb(Optimizer):
Examples:
>>> net = Net()
>>> #1) All parameters use the same learning rate and weight decay
>>> optim = nn.Lamb(params=net.trainable_params(learning_rate=0.1))
>>> optim = nn.Lamb(params=net.trainable_params(), learning_rate=0.1)
>>>
>>> #2) Use parameter groups and set different values
>>> poly_decay_lr = learning_rate_schedule.PolynomialDecayLR()