From d8982c52bf77fc4d44f24247413d166c053ccfac Mon Sep 17 00:00:00 2001 From: Chen Weihang Date: Tue, 16 Nov 2021 19:52:28 +0800 Subject: [PATCH] decrease pten log level (#37239) --- paddle/fluid/framework/operator.cc | 7 +++---- paddle/fluid/imperative/prepared_operator.cc | 7 +++---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/paddle/fluid/framework/operator.cc b/paddle/fluid/framework/operator.cc index 8d275f8f1b..b5a649c206 100644 --- a/paddle/fluid/framework/operator.cc +++ b/paddle/fluid/framework/operator.cc @@ -1275,8 +1275,7 @@ OpKernelType OperatorWithKernel::InnerGetExpectedKernelType( void OperatorWithKernel::ChoosePtenKernel(const ExecutionContext& ctx) const { pt_kernel_signature_.reset( new KernelSignature(std::move(this->GetExpectedPtenKernelArgs(ctx)))); - - VLOG(1) << KernelSignatureToString(*pt_kernel_signature_.get()); + VLOG(6) << KernelSignatureToString(*pt_kernel_signature_.get()); kernel_type_.reset( new OpKernelType(std::move(InnerGetExpectedKernelType(ctx)))); @@ -1288,11 +1287,11 @@ void OperatorWithKernel::ChoosePtenKernel(const ExecutionContext& ctx) const { pt_kernel_name, pt_kernel_key))); if (pt_kernel_->IsValid()) { - VLOG(1) << "Static mode ChoosePtenKernel - kernel name: " << pt_kernel_name + VLOG(6) << "Static mode ChoosePtenKernel - kernel name: " << pt_kernel_name << " | kernel key: " << pt_kernel_key << " | kernel: " << *pt_kernel_; } else { - VLOG(1) << "Static mode ChoosePtenKernel - kernel `" << pt_kernel_name + VLOG(6) << "Static mode ChoosePtenKernel - kernel `" << pt_kernel_name << "` not found."; } } diff --git a/paddle/fluid/imperative/prepared_operator.cc b/paddle/fluid/imperative/prepared_operator.cc index 9815983cc1..32ee8aceee 100644 --- a/paddle/fluid/imperative/prepared_operator.cc +++ b/paddle/fluid/imperative/prepared_operator.cc @@ -160,8 +160,7 @@ PreparedOp PrepareImpl(const NameVarMap& ins, if (FLAGS_run_pten_kernel && pten::KernelFactory::Instance().HasCompatiblePtenKernel(op.Type())) { auto pt_kernel_signature = op.GetExpectedPtenKernelArgs(dygraph_exe_ctx); - - VLOG(1) << framework::KernelSignatureToString(pt_kernel_signature); + VLOG(6) << framework::KernelSignatureToString(pt_kernel_signature); auto pt_kernel_name = pten::KernelName(pt_kernel_signature.name); auto pt_kernel_key = TransOpKernelTypeToPtenKernelKey(expected_kernel_key); @@ -169,7 +168,7 @@ PreparedOp PrepareImpl(const NameVarMap& ins, pt_kernel_name, pt_kernel_key); if (pt_kernel.IsValid()) { - VLOG(1) << "Dynamic mode PrepareImpl - kernel name: " << pt_kernel_name + VLOG(6) << "Dynamic mode PrepareImpl - kernel name: " << pt_kernel_name << " | kernel key: " << pt_kernel_key << " | kernel: " << pt_kernel; @@ -177,7 +176,7 @@ PreparedOp PrepareImpl(const NameVarMap& ins, return PreparedOp(op, ctx, expected_kernel_key, pt_kernel_signature, pt_kernel, pt_kernel_context, dev_ctx); } else { - VLOG(1) << "Dynamic mode ChoosePtenKernel - kernel `" << pt_kernel_name + VLOG(6) << "Dynamic mode ChoosePtenKernel - kernel `" << pt_kernel_name << "` not found."; } } -- GitLab