Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
fix gelu to use erf based algorithm (#18827)
Browse files Browse the repository at this point in the history
  • Loading branch information
TaoLv committed Jul 31, 2020
1 parent ac36089 commit 08a5ee3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/operator/nn/mkldnn/mkldnn_act.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 08a5ee3

Please sign in to comment.