-
Notifications
You must be signed in to change notification settings - Fork 5.9k
[Dynamic shape] Add some more symbolic shape infer funcs #60899
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
Conversation
|
你的PR提交成功,感谢你对开源项目的贡献! |
| bool MultiplySrOpInferSymbolicShape( | ||
| pir::Operation *op, pir::ShapeConstraintIRAnalysis *shape_analysis) { | ||
| return InferSymbolicShapeElementWiseBinary(op, shape_analysis); | ||
| } |
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.
SelectedRows的还需要支持吗?这类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.
这个 PIR 相关代码解析 yaml 的时候、 CodeGen 的时候会自动生成、因此需要加上函数、其实现调用 DenseTensor 的即可
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.
这个的维度信息和dense_tensor的可能还有差别,建议先直接报错吧
|
|
||
| bool FullOpInferSymbolicShape(pir::Operation *op, | ||
| pir::ShapeConstraintIRAnalysis *shape_analysis) { | ||
| return true; |
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.
这里面可以加一些TODO和高级别的LOG,实现的时候也好找
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 循环里会有 LOG、相关的推导正在补全中、为了防止冲突 、我先把本地代码 push 上去
PR types
Others
PR changes
Others
Description
Pcard-67164
Add some more symbolic shape infer funcs