Skip to content
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][Warning Mitigation] Optimite SetSymbolForValueByStaticShape Warning #70981

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,9 @@ void InferSymExprForOp(Operation* op,
<< "[id:" << op->id()
<< "], op_infer_cache_key is :" << op_infer_cache_key;
for (uint32_t i = 0; i < op->num_results(); ++i) {
if (!op->result(i) || !op->result(i).type()) {
continue;
}
infer_context->SetSymbolForValueByStaticShape(op->result(i));
}
}
Expand Down
2 changes: 1 addition & 1 deletion paddle/pir/src/dialect/shape/utils/shape_analysis.cc
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ void InferSymbolicShapeContext::SetSymbolForValueByStaticShape(Value val) {
LOG(WARNING) << "Risk on SetSymbolForValueByStaticShape for null value";
return;
}
if (!IsStaticShape(val)) {
if (!IsStaticShape(val) && !val.isa<pir::BlockArgument>()) {
LOG(WARNING)
<< "Risk on SetSymbolForValueByStaticShape for contain_unknown_dim";
}
Expand Down
Loading