-
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
[CINN]shape inference for logsumexp logcumsumexp linspace logspace min poisson repeat_interleave topk uniform #62800
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
std::vector<symbol::DimExpr> out_dims; | ||
out_dims.emplace_back(step); |
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.
std::vector<symbol::DimExpr> out_dims {step};
|
||
const auto &attributes = op->attributes(); | ||
int repeats = attributes.at("repeats").dyn_cast<pir::Int32Attribute>().data(); | ||
// what should I do if axis is null |
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.
axis (int,可选) – 指定对输入 x 进行运算的轴,若未指定,默认值为 None,使用输入 Tensor 的 flatten 形式。
应该是把 tensor 按照 1 维 vector进行处理、参考一下 infermeta ?
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.
经过讨论确认、ir 中会插入 flatten 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.
可以加一下单测
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
PR types
Function optimization
PR changes
OPs
Description
implement logcumsumexp min linspace logspace logsumexp logcumsumexp min poisson