From de2db9d5a640cec68f8bfc904a05305c413d3230 Mon Sep 17 00:00:00 2001 From: hedongdong Date: Fri, 29 Jan 2021 16:07:28 +0800 Subject: [PATCH] [Docs] Correct formula in the description of operator Elu --- mindspore/ops/operations/nn_ops.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/mindspore/ops/operations/nn_ops.py b/mindspore/ops/operations/nn_ops.py index 9f38217259f..2c95a2eda87 100644 --- a/mindspore/ops/operations/nn_ops.py +++ b/mindspore/ops/operations/nn_ops.py @@ -538,10 +538,11 @@ class Elu(PrimitiveWithInfer): .. math:: - \text{x} = \begin{cases} - \alpha * (\exp(\text{x}) - 1), & \text{if x} < \text{0;}\\ - \text{x}, & \text{if x} >= \text{0.} - \end{cases} + \text{ELU}(x)= \left\{ + \begin{array}{align} + \alpha(e^{x} - 1) & \text{if } x \le 0\\ + x & \text{if } x \gt 0\\ + \end{array}\right. The data type of input tensor must be float.