-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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] Support inferSymbolicShape in cf.tuple_pop #70565
base: develop
Are you sure you want to change the base?
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
if (!pushed_shape_data.data().has_value()) { | ||
out_shape_data = symbol::TensorShapeOrDataDimExprs(shape); | ||
} else { | ||
std::vector<symbol::DimExpr> data = pushed_shape_data.data().value(); | ||
out_shape_data = symbol::TensorShapeOrDataDimExprs(shape, 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.
这里区分有无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.
这里是为了解除 TensorShapeOrDataDimExprs 的const,copy了一份
// Using an outlet to temporarily store the ShapeOrData of the output of | ||
// tuple_pop op | ||
const Value &outlet = stack_create_op.result(2); | ||
symbol::TensorListShapeOrDataDimExprs outlet_list; |
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.
PR Category
CINN
PR Types
New features
Description
Pcard-67164
By obtaining the input of cf.tuple_push, support inferSymbolicShape in cf.tuple_pop