!12681 Fix error format of api comments.

From: @zhang_yi2020
Reviewed-by: @liangchenghui,@zhunaipan
Signed-off-by: @liangchenghui
This commit is contained in:
mindspore-ci-bot 2021-02-27 15:35:26 +08:00 committed by Gitee
commit 53f5fdaff5
1 changed files with 4 additions and 4 deletions

View File

@ -49,13 +49,13 @@ class Momentum(Optimizer):
If use_nesterov is True:
.. math::
p_{t} = p_{t-1} - (grad \ast lr + v_{t} \ast u \ast lr)
.. math::
p_{t} = p_{t-1} - (grad \ast lr + v_{t} \ast u \ast lr)
If use_nesterov is Flase:
.. math::
p_{t} = p_{t-1} - lr \ast v_{t}
.. math::
p_{t} = p_{t-1} - lr \ast v_{t}
Here: where grad, lr, p, v and u denote the gradients, learning_rate, params, moments, and momentum respectively.