-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix dygraph higer node creation #47231
fix dygraph higer node creation #47231
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
return ( | ||
next_grad_node_creation_str, | ||
next_grad_node_out_list, | ||
next_node_generator.backward_forward_inputs_map, | ||
has_higher_order_node, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
表示状态信息的has_higher_order_node
放在开头或许更合适一些
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
\"don't intend calculating higher order \" | ||
\"derivatives, please set `create_graph` to \" | ||
\"False.\")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个换行看上去不太对齐
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, nice job
PR types
Bug fixes
PR changes
Others
Describe
背景:
动态图下目前使用到未实现的高阶算子,框架目前没有对这种情况进行处理,导致后续运算结果出现错误。
修复:
在自动代码生成部分,为使用到的未实现的高阶算子添加相应的报错信息。
拿matmul四阶举例,新增的报错信息如下:
"The Op matmul_triple_grad doesn't have any grad op. If you don't intend calculating higher order derivatives, please set create_graph to False."