未验证 提交 d8982c52 编写于 作者: C Chen Weihang 提交者: GitHub

decrease pten log level (#37239)

上级 f95d44a2
...@@ -1275,8 +1275,7 @@ OpKernelType OperatorWithKernel::InnerGetExpectedKernelType( ...@@ -1275,8 +1275,7 @@ OpKernelType OperatorWithKernel::InnerGetExpectedKernelType(
void OperatorWithKernel::ChoosePtenKernel(const ExecutionContext& ctx) const { void OperatorWithKernel::ChoosePtenKernel(const ExecutionContext& ctx) const {
pt_kernel_signature_.reset( pt_kernel_signature_.reset(
new KernelSignature(std::move(this->GetExpectedPtenKernelArgs(ctx)))); new KernelSignature(std::move(this->GetExpectedPtenKernelArgs(ctx))));
VLOG(6) << KernelSignatureToString(*pt_kernel_signature_.get());
VLOG(1) << KernelSignatureToString(*pt_kernel_signature_.get());
kernel_type_.reset( kernel_type_.reset(
new OpKernelType(std::move(InnerGetExpectedKernelType(ctx)))); new OpKernelType(std::move(InnerGetExpectedKernelType(ctx))));
...@@ -1288,11 +1287,11 @@ void OperatorWithKernel::ChoosePtenKernel(const ExecutionContext& ctx) const { ...@@ -1288,11 +1287,11 @@ void OperatorWithKernel::ChoosePtenKernel(const ExecutionContext& ctx) const {
pt_kernel_name, pt_kernel_key))); pt_kernel_name, pt_kernel_key)));
if (pt_kernel_->IsValid()) { 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 key: " << pt_kernel_key
<< " | kernel: " << *pt_kernel_; << " | kernel: " << *pt_kernel_;
} else { } else {
VLOG(1) << "Static mode ChoosePtenKernel - kernel `" << pt_kernel_name VLOG(6) << "Static mode ChoosePtenKernel - kernel `" << pt_kernel_name
<< "` not found."; << "` not found.";
} }
} }
......
...@@ -160,8 +160,7 @@ PreparedOp PrepareImpl(const NameVarMap<VarType>& ins, ...@@ -160,8 +160,7 @@ PreparedOp PrepareImpl(const NameVarMap<VarType>& ins,
if (FLAGS_run_pten_kernel && if (FLAGS_run_pten_kernel &&
pten::KernelFactory::Instance().HasCompatiblePtenKernel(op.Type())) { pten::KernelFactory::Instance().HasCompatiblePtenKernel(op.Type())) {
auto pt_kernel_signature = op.GetExpectedPtenKernelArgs(dygraph_exe_ctx); auto pt_kernel_signature = op.GetExpectedPtenKernelArgs(dygraph_exe_ctx);
VLOG(6) << framework::KernelSignatureToString(pt_kernel_signature);
VLOG(1) << framework::KernelSignatureToString(pt_kernel_signature);
auto pt_kernel_name = pten::KernelName(pt_kernel_signature.name); auto pt_kernel_name = pten::KernelName(pt_kernel_signature.name);
auto pt_kernel_key = TransOpKernelTypeToPtenKernelKey(expected_kernel_key); auto pt_kernel_key = TransOpKernelTypeToPtenKernelKey(expected_kernel_key);
...@@ -169,7 +168,7 @@ PreparedOp PrepareImpl(const NameVarMap<VarType>& ins, ...@@ -169,7 +168,7 @@ PreparedOp PrepareImpl(const NameVarMap<VarType>& ins,
pt_kernel_name, pt_kernel_key); pt_kernel_name, pt_kernel_key);
if (pt_kernel.IsValid()) { 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 key: " << pt_kernel_key
<< " | kernel: " << pt_kernel; << " | kernel: " << pt_kernel;
...@@ -177,7 +176,7 @@ PreparedOp PrepareImpl(const NameVarMap<VarType>& ins, ...@@ -177,7 +176,7 @@ PreparedOp PrepareImpl(const NameVarMap<VarType>& ins,
return PreparedOp(op, ctx, expected_kernel_key, pt_kernel_signature, return PreparedOp(op, ctx, expected_kernel_key, pt_kernel_signature,
pt_kernel, pt_kernel_context, dev_ctx); pt_kernel, pt_kernel_context, dev_ctx);
} else { } else {
VLOG(1) << "Dynamic mode ChoosePtenKernel - kernel `" << pt_kernel_name VLOG(6) << "Dynamic mode ChoosePtenKernel - kernel `" << pt_kernel_name
<< "` not found."; << "` not found.";
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册