From 5d1365101505f5741da86b95e820a2db9f23e7a3 Mon Sep 17 00:00:00 2001 From: Chen Weihang Date: Mon, 16 May 2022 17:48:45 +0800 Subject: [PATCH] fix trace op record event error (#42775) --- paddle/fluid/imperative/tracer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/imperative/tracer.cc b/paddle/fluid/imperative/tracer.cc index 7b274339e3..350263bc54 100644 --- a/paddle/fluid/imperative/tracer.cc +++ b/paddle/fluid/imperative/tracer.cc @@ -192,7 +192,7 @@ void Tracer::TraceOpImpl(const std::string& type, paddle::framework::AttributeMap* passed_default_attrs_, bool use_default_attr_map) { platform::RecordEvent op_type_record_event( - "trace_op", platform::TracerEventType::Operator, 1); + type, platform::TracerEventType::Operator, 1); platform::ScopedFlushDenormal flush; VLOG(1) << "Trace Op: " << type; if (FLAGS_use_mkldnn) { -- GitLab