Browse Source

!12681 Fix error format of api comments.

From: @zhang_yi2020
Reviewed-by: @liangchenghui,@zhunaipan
Signed-off-by: @liangchenghui
tags/v1.2.0-rc1
mindspore-ci-bot Gitee 4 years ago
parent
commit
53f5fdaff5
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      mindspore/nn/optim/momentum.py

+ 4
- 4
mindspore/nn/optim/momentum.py 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.



Loading…
Cancel
Save