From 2237ec345eead9c60c0380faefe9637e156d5225 Mon Sep 17 00:00:00 2001 From: Pedro Larroy Date: Tue, 14 May 2019 14:36:55 -0700 Subject: [PATCH] Silence excessive mkldnn logging output on tests. http://jenkins.mxnet-ci.amazon-ml.com/blue/rest/organizations/jenkins/pipelines/mxnet-validation/pipelines/unix-cpu/branches/PR-14940/runs/1/nodes/283/steps/749/log/?start=0 --- src/operator/nn/mkldnn/mkldnn_base.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/operator/nn/mkldnn/mkldnn_base.cc b/src/operator/nn/mkldnn/mkldnn_base.cc index 5dccba281fd0..e36a0f008821 100644 --- a/src/operator/nn/mkldnn/mkldnn_base.cc +++ b/src/operator/nn/mkldnn/mkldnn_base.cc @@ -553,8 +553,8 @@ void OpCheck::Run(mxnet::FCompute fn, const nnvm::NodeAttrs &attrs, for (size_t i = 0; i < out_blobs.size(); i++) out_blobs[i] = outputs[i].data(); fn(attrs, ctx, in_blobs, req, out_blobs); - - LOG(INFO) << "test " << attrs.op->name; + if (dmlc::GetEnv("MXNET_MKLDNN_DEBUG", false)) + LOG(INFO) << "test " << attrs.op->name; size_t num = std::min(outputs.size(), outputs_.size()); num = std::min(num_checks, num); for (size_t i = 0; i < num; i++) {