-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
[Prim][PIR] Sink Forward Prim #58130
[Prim][PIR] Sink Forward Prim #58130
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
f382df6
to
4186463
Compare
|
||
VLOG(4) << "Decomp prepare attributes of mean"; | ||
|
||
IntArray axis = op->attribute("axis") |
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.
后续代码生成的时候需要考虑到可变attribute
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.
ok
VLOG(4) << "Decomp prepare call mean's decomp interface"; | ||
|
||
Tensor op_res = | ||
paddle::primitive::details::mean_decomp<primitive::LazyTensor>( |
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.
这儿后续需要对optional输入进行处理
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.
ok
decomp_interface.Decomp(&fwd_op); | ||
for (size_t i = 0; i < decomp_res.size(); ++i) { | ||
py::list sub_res; | ||
for (size_t j = 0; j < decomp_res[i].size(); ++j) { |
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.
这儿这样处理的话 那在interface中需要对没有的输出补空tensor进行占位处理
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.
ok
* decomp sink * polish code * fix flag * fix code * fix code * fix code2 * fix code2 * fix code3
* decomp sink * polish code * fix flag * fix code * fix code * fix code2 * fix code2 * fix code3
* decomp sink * polish code * fix flag * fix code * fix code * fix code2 * fix code2 * fix code3
PR types
New features
PR changes
Others
Description
Pcard-66975
Sink Forward Prim
Todo: auto codegen