-
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
【pir】modify ir_backward to build If grad #59520
【pir】modify ir_backward to build If grad #59520
Conversation
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
std::vector<pir::OpResult>{nullptr}}; | ||
for (size_t i = 0u; i < pop_op.num_results(); ++i) { | ||
res[0].push_back(pop_op.result(i)); | ||
std::vector<std::vector<pir::OpResult>> res{inputs.size()}; |
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.
这儿建议enforce_eq一下 inputs.size() == num_results() + 1 , 不然感觉出问题后不好排查。
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.
这个目前inputs.size() == num_resluts() 待cond的stopgrdient 修改完成重新适配
你的PR提交成功,感谢你对开源项目的贡献! |
PR types
others
PR changes
others
Description
pcard-67164
控制流ifop 反向组网初步打通,对原始反向逻辑有较大的修改
设计注意点:
TODO:
优化方向: