TaoLv commented on a change in pull request #13530: Integrate MKLDNN Conv1d and
support 3d layout
URL: https://github.com/apache/incubator-mxnet/pull/13530#discussion_r239697198
##########
File path: src/operator/nn/mkldnn/mkldnn_act.cc
##########
@@ -49,6 +49,17 @@ bool SupportMKLDNNAct(const ActivationParam& param) {
|| param.act_type == activation::kTanh;
}
+bool SupportMKLDNNAct(const ActivationParam& param, const NDArray &input) {
+ if ((input.shape().ndim() < 1) ||
+ (input.shape().ndim() > 4) ||
Review comment:
Please add comments to this dimension check.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services