Browse Source

fix formula grammar error in comment of SmoothL1Loss

tags/v0.7.0-beta
Xiao Tianci 5 years ago
parent
commit
ed53f7f821
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      mindspore/ops/operations/nn_ops.py

+ 1
- 1
mindspore/ops/operations/nn_ops.py View File

@@ -1750,7 +1750,7 @@ class SmoothL1Loss(PrimitiveWithInfer):
Sets input prediction as `X`, input target as `Y`, output as `loss`. Then,

.. math::
\text{SmoothL1Loss} = \begin{cases} \frac{0.5 x^{2}}{\text{beta}, &if \left |x \right | < \text{beta} \cr
\text{SmoothL1Loss} = \begin{cases} \frac{0.5 x^{2}}{\text{beta}}, &if \left |x \right | < \text{beta} \cr
\left |x \right|-0.5 \text{beta}, &\text{otherwise}\end{cases}

Args:


Loading…
Cancel
Save