zheng-da commented on a change in pull request #10336: Fix MKLDNN 
sigmoid/softrelu issue
URL: https://github.com/apache/incubator-mxnet/pull/10336#discussion_r178316964
 
 

 ##########
 File path: src/operator/nn/activation.cc
 ##########
 @@ -82,7 +82,7 @@ void ActivationGradComputeExCPU(const nnvm::NodeAttrs& attrs,
   const ActivationParam& param = nnvm::get<ActivationParam>(attrs.parsed);
   if (SupportMKLDNN(inputs[0])) {
     MKLDNN_OPCHECK_INIT(true, outputs.size(), inputs, outputs);
-    MKLDNNActivationBackward(attrs, ctx, inputs[0], inputs[1], req[0],
+    MKLDNNActivationBackward(attrs, ctx, inputs[0], inputs[2], req[0],
                              outputs[0]);
 
 Review comment:
   `inputs[2]` doesn't exist. You need to modify `ActivationGrad` to pass input 
data to backward.
   

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