diff --git a/Makefile b/Makefile index 2258a1a5a55e..de38463f8bcd 100644 --- a/Makefile +++ b/Makefile @@ -126,10 +126,6 @@ ifeq ($(USE_MKLDNN), 1) LDFLAGS += -L$(MKLDNNROOT)/lib -lmkldnn -Wl,-rpath,'$${ORIGIN}' endif -ifeq ($(BN_DEBUG), 1) - CFLAGS += -DMXNET_BN_DEBUG=1 -endif - ifeq ($(USE_OPERATOR_TUNING), 1) CFLAGS += -DMXNET_USE_OPERATOR_TUNING=1 endif diff --git a/src/operator/nn/batch_norm.cc b/src/operator/nn/batch_norm.cc index 1772e2cfeb2c..aefe1944d3b8 100644 --- a/src/operator/nn/batch_norm.cc +++ b/src/operator/nn/batch_norm.cc @@ -382,23 +382,6 @@ static bool BatchNormType(const nnvm::NodeAttrs& attrs, return true; } -static inline bool similar_array(const mxnet::NDArray &arr1, - const mxnet::NDArray &arr2, - float tol) { - float *data1 = reinterpret_cast(arr1.data().dptr_); - float *data2 = reinterpret_cast(arr2.data().dptr_); - if (arr1.shape().Size() != arr2.shape().Size()) - return false; - for (size_t i = 0; i < arr1.shape().Size(); i++) { - if (std::abs(data1[i] - data2[i]) > tol) { - // printf("similar_array: %.8f, %.8f \n", data1[i], data2[i]); - return false; - } - } - std::cout << "similar_array: passed all check, tol=" << tol << std::endl; - return true; -} - #if MXNET_USE_MKLDNN == 1 static inline bool SupportMKLDNNBN(const NDArray &input, const BatchNormParam ¶m) { TShape shape = input.shape();