fix an registration issue for MKL_ML op
authorGuozhong Zhuang <guozhong.zhuang@intel.com>
Thu, 24 May 2018 20:30:18 +0000 (13:30 -0700)
committerGuozhong Zhuang <guozhong.zhuang@intel.com>
Thu, 24 May 2018 20:30:18 +0000 (13:30 -0700)
tensorflow/core/kernels/mkl_conv_grad_bias_ops.cc

index d23027a..a6698a1 100644 (file)
@@ -18,6 +18,7 @@ limitations under the License.
 // bias.
 
 #ifdef INTEL_MKL
+#ifdef INTEL_MKL_ML
 
 #define USE_EIGEN_TENSOR
 #define EIGEN_USE_THREADS
@@ -262,4 +263,5 @@ class MklConv2DCustomBackpropBiasOp : public OpKernel {
 TF_CALL_float(REGISTER_CPU_KERNELS);
 #undef REGISTER_CPU_KERNELS
 } /* namespace tensorflow */
+#endif /* INTEL_MKL_ML */
 #endif /* INTEL_MKL */