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
[PIR] Throw error when OP has no grad OP #63914
[PIR] Throw error when OP has no grad OP #63914
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
@@ -55,6 +55,78 @@ | |||
""" | |||
__all__ = ['grad', 'calc_gradient', 'calc_gradient_helper'] | |||
|
|||
# TODO: Consider a better way to mark these ops has no grad op. |
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.
这个list 加到backward_utils.py里面吧
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.
LGTM
PR Category
Execute Infrastructure
PR Types
Improvements
Description
在添加反向 OP 时,如果找不到 grad OP,应该直接报错,而不是报 warning
closes #63908
PCard-66972