diff --git a/src/ndarray/ndarray.cc b/src/ndarray/ndarray.cc index ce591c4522b3..37aba4c2f13a 100644 --- a/src/ndarray/ndarray.cc +++ b/src/ndarray/ndarray.cc @@ -1078,7 +1078,7 @@ inline void CopyFromToRspImpl(const NDArray& from, const NDArray& to, RunContext // Make a copy of a dense NDArray template inline void CopyFromToDnsImpl(const NDArray& from, const NDArray& to, RunContext ctx) { -#if MXNET_USE_MKLDNN ==100 +#if MXNET_USE_MKLDNN == 100 // If neither is MKLDNN, we can copy data normally. if (!from.IsMKLDNNData() && !to.IsMKLDNNData()) { #endif @@ -1616,7 +1616,6 @@ void NDArray::Save(dmlc::Stream *strm) const { #if MXNET_USE_MKLDNN == 1 if (nd_cpu.IsMKLDNNData()) { LOG(FATAL) << "TODO: MKL-DNN 1.0"; - nd_cpu = nd_cpu.Reorder2Default(); } #endif diff --git a/src/operator/nn/mkldnn/mkldnn_base-inl.h b/src/operator/nn/mkldnn/mkldnn_base-inl.h index a88104cac7a6..eb4f1de09080 100644 --- a/src/operator/nn/mkldnn/mkldnn_base-inl.h +++ b/src/operator/nn/mkldnn/mkldnn_base-inl.h @@ -352,7 +352,7 @@ class MKLDNNStream { public: static MKLDNNStream *Get(); - MKLDNNStream(): s(CpuEngine::Get()->get_engine()) {}; + MKLDNNStream(): s(CpuEngine::Get()->get_engine()) {} void RegisterPrimArgs(const mkldnn::primitive &prim, const mkldnn_args_map_t &args) {