-
Notifications
You must be signed in to change notification settings - Fork 5.8k
[CINN]Add InferSymbolicShape for tensor_to_array #69069
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提交成功,感谢你对开源项目的贡献! |
Sorry to inform you that 3393252's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually. |
this->attributes().at("use_stack").dyn_cast<pir::BoolAttribute>().data(); | ||
const auto &x_shape_or_data = | ||
infer_context->GetShapeOrDataForValue(x()) | ||
.dyn_cast<symbol::RankedTensorArrayShapeOrDataDimExprs>(); |
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.
语义上看 TensorToArrayOp 的输入参数应该是TensorShapeOrDataDimExprs吧
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.
好的
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.
好像只是反向算子,可能是求梯度的意思,求x的梯度
const auto &x_shape_or_data = | ||
infer_context->GetShapeOrDataForValue(x()) | ||
.dyn_cast<symbol::RankedTensorArrayShapeOrDataDimExprs>(); | ||
infer_context->SetShapeOrDataForValue(x_grad(), x_shape_or_data); |
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
PR Category
CINN
PR Types
Others
Description
Add InferSymbolicShape for select_output,PIR 下不支持,无需实现