-
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
[0D-Tensor] CINN supports fill_constant
, fix infershape and pass
#55563
[0D-Tensor] CINN supports fill_constant
, fix infershape and pass
#55563
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
Instruction HandleFillConstant(const Instruction& instr) { | ||
Instruction new_instr = instr; |
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.
这里为什么转成了1D?
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.
这个 pass 会把对 0D-Tensor 的处理转为 1D-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.
那就是后端的代码生成还不支持fill_constant
的0D-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.
是的
…addlePaddle#55563) * [0D-Tensor] CINN supports fill_constant, fix infershape and pass * fix infershape of fill_constant * add back fill_constant to zero_tensor_trick_pass
…addlePaddle#55563) * [0D-Tensor] CINN supports fill_constant, fix infershape and pass * fix infershape of fill_constant * add back fill_constant to zero_tensor_trick_pass
PR types
Function optimization
PR changes
OPs
Description
Pcard-71127
[0D-Tensor] CINN supports
fill_constant
, fix infershape and pass