This is an automated email from the ASF dual-hosted git repository.
zhasheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git
The following commit(s) were added to refs/heads/master by this push:
new 08a5ee3 fix gelu to use erf based algorithm (#18827)
08a5ee3 is described below
commit 08a5ee33319990db56d53abf3cf2bf46b91fa705
Author: Tao Lv <[email protected]>
AuthorDate: Sat Aug 1 03:38:20 2020 +0800
fix gelu to use erf based algorithm (#18827)
---
src/operator/nn/mkldnn/mkldnn_act.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/operator/nn/mkldnn/mkldnn_act.cc
b/src/operator/nn/mkldnn/mkldnn_act.cc
index 4654c24..e76a062 100644
--- a/src/operator/nn/mkldnn/mkldnn_act.cc
+++ b/src/operator/nn/mkldnn/mkldnn_act.cc
@@ -100,7 +100,7 @@ mkldnn::algorithm GetMKLDNNActAlgo(const LeakyReLUParam&
param) {
case leakyrelu::kELU:
return mkldnn::algorithm::eltwise_elu;
case leakyrelu::kGELU:
- return mkldnn::algorithm::eltwise_gelu;
+ return mkldnn::algorithm::eltwise_gelu_erf;
default:
LOG(FATAL) << "unknown activation type for LeakyReLU: " <<
param.act_type;
return mkldnn::algorithm::eltwise_relu;