!3999 correct hsigmoid comment

Merge pull request !3999 from 王东旭/hsigmoid_comment
pull/3999/MERGE
mindspore-ci-bot 5 years ago committed by Gitee
commit a375c50cf7

@ -454,7 +454,7 @@ class HSigmoid(Cell):
Hard sigmoid is defined as:
.. math::
\text{hsigmoid}(x_{i}) = max(0, min(1, \frac{2 * x_{i} + 5}{10})),
\text{hsigmoid}(x_{i}) = max(0, min(1, \frac{x_{i} + 3}{6})),
where :math:`x_{i}` is the :math:`i`-th slice along the given dim of the input Tensor.

@ -498,7 +498,7 @@ class HSigmoid(PrimitiveWithInfer):
Hard sigmoid is defined as:
.. math::
\text{hsigmoid}(x_{i}) = max(0, min(1, \frac{2 * x_{i} + 5}{10})),
\text{hsigmoid}(x_{i}) = max(0, min(1, \frac{x_{i} + 3}{6})),
where :math:`x_{i}` is the :math:`i`-th slice along the given dim of the input Tensor.

Loading…
Cancel
Save