From ff287ab1c31191a43120a5522fae9f296ddda572 Mon Sep 17 00:00:00 2001 From: zhupengyang Date: Tue, 7 Jan 2020 11:06:26 +0800 Subject: [PATCH] fix soft_relu formula (#1715) --- doc/fluid/api_cn/layers_cn/soft_relu_cn.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/fluid/api_cn/layers_cn/soft_relu_cn.rst b/doc/fluid/api_cn/layers_cn/soft_relu_cn.rst index 048d2b538..0226abd43 100644 --- a/doc/fluid/api_cn/layers_cn/soft_relu_cn.rst +++ b/doc/fluid/api_cn/layers_cn/soft_relu_cn.rst @@ -7,7 +7,7 @@ soft_relu SoftReLU 激活函数. -.. math:: out=ln(1+exp(max(min(x,threshold),threshold))) +.. math:: out=ln(1+exp(max(min(x,threshold),-threshold))) 参数: - **x** (Variable) - SoftReLU激活函数的输入,为数据类型为float32,float64的多维Tensor或者LoDTensor。 -- GitLab