Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
机器未来
Paddle
提交
8fba68d3
P
Paddle
项目概览
机器未来
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
8fba68d3
编写于
4月 07, 2022
作者:
C
chenjian
提交者:
GitHub
4月 07, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix dygraph record event position (#41445)
* no * maintain old profiler * fix old dygraph record event
上级
dfa63126
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
6 addition
and
5 deletion
+6
-5
paddle/fluid/imperative/partial_grad_engine.cc
paddle/fluid/imperative/partial_grad_engine.cc
+2
-1
paddle/fluid/imperative/tracer.cc
paddle/fluid/imperative/tracer.cc
+1
-1
paddle/fluid/platform/profiler/chrometracing_logger.cc
paddle/fluid/platform/profiler/chrometracing_logger.cc
+3
-3
未找到文件。
paddle/fluid/imperative/partial_grad_engine.cc
浏览文件 @
8fba68d3
...
@@ -826,6 +826,8 @@ std::vector<std::shared_ptr<VarBase>> PartialGradTask::Run() {
...
@@ -826,6 +826,8 @@ std::vector<std::shared_ptr<VarBase>> PartialGradTask::Run() {
}
}
void
PartialGradTask
::
RunEachOp
(
OpBase
*
op
)
{
void
PartialGradTask
::
RunEachOp
(
OpBase
*
op
)
{
platform
::
RecordEvent
op_type_record_event
(
op
->
Type
()
+
" grad trace_op"
,
platform
::
TracerEventType
::
Operator
,
1
);
// Prepare new inputs
// Prepare new inputs
NameVarMap
<
VarBase
>
tmp_ins
;
NameVarMap
<
VarBase
>
tmp_ins
;
for
(
auto
&
input_pair
:
op
->
GetInsMap
())
{
for
(
auto
&
input_pair
:
op
->
GetInsMap
())
{
...
@@ -908,7 +910,6 @@ void PartialGradTask::RunEachOp(OpBase *op) {
...
@@ -908,7 +910,6 @@ void PartialGradTask::RunEachOp(OpBase *op) {
// Run op
// Run op
OpBase
::
Run
(
op
->
InnerOp
(),
tmp_ins
,
tmp_outs
,
op
->
Attrs
(),
OpBase
::
Run
(
op
->
InnerOp
(),
tmp_ins
,
tmp_outs
,
op
->
Attrs
(),
op
->
DefaultAttrsMap
(),
op
->
place
());
op
->
DefaultAttrsMap
(),
op
->
place
());
if
(
create_graph_
)
{
if
(
create_graph_
)
{
auto
double_grad_node
=
auto
double_grad_node
=
CreateGradOpNode
(
op
->
InnerOp
(),
tmp_ins
,
tmp_outs
,
op
->
Attrs
(),
CreateGradOpNode
(
op
->
InnerOp
(),
tmp_ins
,
tmp_outs
,
op
->
Attrs
(),
...
...
paddle/fluid/imperative/tracer.cc
浏览文件 @
8fba68d3
...
@@ -313,7 +313,7 @@ void Tracer::TraceOpImpl(const std::string& type,
...
@@ -313,7 +313,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
::
Operator
,
1
);
type
+
" node_creation"
,
platform
::
TracerEventType
::
Operator
Inner
,
1
);
if
(
ComputeRequiredGrad
(
new_ins
,
outs
,
trace_backward
))
{
if
(
ComputeRequiredGrad
(
new_ins
,
outs
,
trace_backward
))
{
PADDLE_ENFORCE_EQ
(
PADDLE_ENFORCE_EQ
(
...
...
paddle/fluid/platform/profiler/chrometracing_logger.cc
浏览文件 @
8fba68d3
...
@@ -325,7 +325,7 @@ void ChromeTracingLogger::HandleTypeKernel(
...
@@ -325,7 +325,7 @@ void ChromeTracingLogger::HandleTypeKernel(
"name": "%s[%s]", "pid": %lld, "tid": %lld,
"name": "%s[%s]", "pid": %lld, "tid": %lld,
"ts": %lld, "dur": %.3f,
"ts": %lld, "dur": %.3f,
"ph": "X", "cat": "%s",
"ph": "X", "cat": "%s",
"cname": "
rail_animation
",
"cname": "
cq_build_failed
",
"args": {
"args": {
"start_time": "%.3f us",
"start_time": "%.3f us",
"end_time": "%.3f us",
"end_time": "%.3f us",
...
@@ -376,7 +376,7 @@ void ChromeTracingLogger::HandleTypeMemcpy(
...
@@ -376,7 +376,7 @@ void ChromeTracingLogger::HandleTypeMemcpy(
"name": "%s[%s]", "pid": %lld, "tid": %lld,
"name": "%s[%s]", "pid": %lld, "tid": %lld,
"ts": %lld, "dur": %.3f,
"ts": %lld, "dur": %.3f,
"ph": "X", "cat": "%s",
"ph": "X", "cat": "%s",
"cname": "
rail_animation
",
"cname": "
cq_build_failed
",
"args": {
"args": {
"start_time": "%.3f us",
"start_time": "%.3f us",
"end_time": "%.3f us",
"end_time": "%.3f us",
...
@@ -411,7 +411,7 @@ void ChromeTracingLogger::HandleTypeMemset(
...
@@ -411,7 +411,7 @@ void ChromeTracingLogger::HandleTypeMemset(
"name": "%s[%s]", "pid": %lld, "tid": %lld,
"name": "%s[%s]", "pid": %lld, "tid": %lld,
"ts": %lld, "dur": %.3f,
"ts": %lld, "dur": %.3f,
"ph": "X", "cat": "%s",
"ph": "X", "cat": "%s",
"cname": "
rail_animation
",
"cname": "
cq_build_failed
",
"args": {
"args": {
"start_time": "%.3f us",
"start_time": "%.3f us",
"end_time": "%.3f us",
"end_time": "%.3f us",
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录