From ee1187feb540c33c0a63ff9bfcde3dc7b31c1c60 Mon Sep 17 00:00:00 2001 From: Tao Lv Date: Mon, 2 Sep 2019 21:58:37 +0800 Subject: [PATCH] fix lint --- src/ndarray/ndarray.cc | 3 +-- src/operator/nn/mkldnn/mkldnn_base-inl.h | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) 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) {