Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions src/operator/nn/mkldnn/mkldnn_act.cc
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,9 @@ namespace mxnet {
namespace op {

bool SupportMKLDNNAct(const ActivationParam& param) {
// We only enable ReLU for now. It seems other activations have some precision
// problems.
return param.act_type == activation::kReLU;
#if 0
return param.act_type == activation::kReLU
|| param.act_type == activation::kSigmoid
|| param.act_type == activation::kSoftReLU;
#endif
}

static inline mkldnn::algorithm GetMKLDNNActAlgo(const ActivationParam& param) {
Expand Down