From af31943b334d7e5b10e4d29268142304cdfdca4f Mon Sep 17 00:00:00 2001 From: Xiao Tianci Date: Thu, 27 Aug 2020 21:45:27 +0800 Subject: [PATCH] fix formula grammar error in comment of SmoothL1Loss --- mindspore/ops/operations/nn_ops.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mindspore/ops/operations/nn_ops.py b/mindspore/ops/operations/nn_ops.py index d2b6f9a397..9aed47a32b 100644 --- a/mindspore/ops/operations/nn_ops.py +++ b/mindspore/ops/operations/nn_ops.py @@ -1761,7 +1761,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: