Browse Source

fix error words for api comments.

tags/v1.2.0-rc1
zhangyi 5 years ago
parent
commit
ff0cb148e4
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      mindspore/nn/optim/momentum.py
  2. +1
    -1
      mindspore/nn/optim/sgd.py

+ 1
- 1
mindspore/nn/optim/momentum.py View File

@@ -52,7 +52,7 @@ class Momentum(Optimizer):
.. math::
p_{t} = p_{t-1} - (grad \ast lr + v_{t} \ast u \ast lr)

If use_nesterov is Flase:
If use_nesterov is False:

.. math::
p_{t} = p_{t-1} - lr \ast v_{t}


+ 1
- 1
mindspore/nn/optim/sgd.py View File

@@ -47,7 +47,7 @@ class SGD(Optimizer):
.. math::
p_{t+1} = p_{t} - lr \ast (gradient + u \ast v_{t+1})

If nesterov is Flase:
If nesterov is False:

.. math::
p_{t+1} = p_{t} - lr \ast v_{t+1}


Loading…
Cancel
Save