TaoLv commented on a change in pull request #17884: [MKL-DNN] Integrate Conv3d 
and Pool3d/1d
URL: https://github.com/apache/incubator-mxnet/pull/17884#discussion_r396512804
 
 

 ##########
 File path: src/operator/nn/mkldnn/mkldnn_base-inl.h
 ##########
 @@ -153,9 +153,8 @@ static inline bool SupportMKLDNN(int dtype, const 
mxnet::TShape &shape) {
     // MKLDNN currently does not support 0-dim Tensor and 0-size Tensor
     return false;
   }
-
   return (dtype == mshadow::kFloat32 || dtype == mshadow::kBfloat16) &&
-         (ndim == 1 || ndim == 2 || ndim == 4);
+                    (ndim >= 1 && ndim <= 5);
 
 Review comment:
   Please fix the indent and make sure you also want to enable ndim=3 here.

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to