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_r239696996
 
 

 ##########
 File path: src/operator/nn/activation.cc
 ##########
 @@ -97,9 +97,10 @@ static void ActivationComputeExCPU(const nnvm::NodeAttrs& 
attrs,
                                    const std::vector<NDArray>& inputs,
                                    const std::vector<OpReqType>& req,
                                    const std::vector<NDArray>& outputs) {
+  const ActivationParam& param = nnvm::get<ActivationParam>(attrs.parsed);
   CHECK_EQ(inputs.size(), 1U);
   CHECK_EQ(outputs.size(), 1U);
-  if (SupportMKLDNN(inputs[0])) {
+  if (SupportMKLDNNAct(param, inputs[0])) {
 
 Review comment:
   Please confirm if changes also need be applied to L139 and L150.

----------------------------------------------------------------
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

Reply via email to