Skip to content

Commit

Permalink
refine
Browse files Browse the repository at this point in the history
  • Loading branch information
ooooo-create committed Jan 25, 2025
1 parent 454f08d commit 40260d6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions paddle/pir/src/dialect/shape/utils/shape_analysis.cc
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,7 @@ void InferSymbolicShapeContext::SetSymbolForValueByStaticShape(Value val) {
LOG(WARNING) << "Risk on SetSymbolForValueByStaticShape for null value";
return;
}
if (!IsStaticShape(val)) {
if (val.isa<pir::BlockArgument>()) {
continue;
}
if (!IsStaticShape(val) && !val.isa<pir::BlockArgument>()) {
LOG(WARNING)
<< "Risk on SetSymbolForValueByStaticShape for contain_unknown_dim";
}
Expand Down

0 comments on commit 40260d6

Please sign in to comment.