未验证 提交 64d88e71 编写于 作者: A Aurelius84 提交者: GitHub

[Performance]Remove redundant op_type in RecordEvent (#42246)

* [Performance]Remove redundant op_type  in RecordEvent

* [Performance]Remove redundant op_type  in RecordEvent

* [Performance]Remove redundant op_type  in RecordEvent
上级 2998a7d2
...@@ -444,7 +444,7 @@ static void PreparedOpRunImpl( ...@@ -444,7 +444,7 @@ static void PreparedOpRunImpl(
framework::Scope scope; framework::Scope scope;
{ {
platform::RecordEvent record_event(op.Type() + "::infer_shape", platform::RecordEvent record_event("infer_shape",
platform::TracerEventType::OperatorInner, platform::TracerEventType::OperatorInner,
1, platform::EventRole::kInnerOp); 1, platform::EventRole::kInnerOp);
DygraphInferShapeContext<VarType> infer_shape_ctx( DygraphInferShapeContext<VarType> infer_shape_ctx(
...@@ -454,7 +454,7 @@ static void PreparedOpRunImpl( ...@@ -454,7 +454,7 @@ static void PreparedOpRunImpl(
} }
{ {
platform::RecordEvent record_event(op.Type() + "::compute", platform::RecordEvent record_event("compute",
platform::TracerEventType::OperatorInner, platform::TracerEventType::OperatorInner,
1, platform::EventRole::kInnerOp); 1, platform::EventRole::kInnerOp);
......
...@@ -320,7 +320,7 @@ void Tracer::TraceOpImpl(const std::string& type, ...@@ -320,7 +320,7 @@ void Tracer::TraceOpImpl(const std::string& type,
{ {
platform::RecordEvent node_creation_record_event( platform::RecordEvent node_creation_record_event(
type + " node_creation", platform::TracerEventType::OperatorInner, 1); "grad_node_creation", platform::TracerEventType::OperatorInner, 1);
if (ComputeRequiredGrad(new_ins, outs, trace_backward)) { if (ComputeRequiredGrad(new_ins, outs, trace_backward)) {
PADDLE_ENFORCE_EQ( PADDLE_ENFORCE_EQ(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册