pengzhao-intel commented on a change in pull request #15870: update support 
MKLDNN BN conditions
URL: https://github.com/apache/incubator-mxnet/pull/15870#discussion_r313207945
 
 

 ##########
 File path: src/operator/nn/batch_norm.cc
 ##########
 @@ -420,8 +419,7 @@ void BatchNormGradComputeExCPU(const nnvm::NodeAttrs 
&attrs,
 
   mxnet::TShape shape = inputs[0].shape();
   // MKLDNN batchnorm only works well on the special MKLDNN layout.
-  if (SupportMKLDNNBN(inputs[0], param)
-      && (inputs[3].IsMKLDNNData() || inputs[0].IsMKLDNNData())) {
+  if (SupportMKLDNNBN(inputs[0], param)) {
 
 Review comment:
   why we don't need to check these two conditions?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to