We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6e543b commit b415800Copy full SHA for b415800
paddle/pir/src/dialect/shape/utils/dim_expr_util.cc
@@ -246,7 +246,7 @@ struct IsListLhsBeforeListRhsStruct {
246
if (lhs_operands->at(i) == rhs_operands->at(i)) continue;
247
return IsLhsBeforeRhs(lhs_operands->at(i), rhs_operands->at(i));
248
}
249
- return true;
+ return false;
250
251
};
252
@@ -340,7 +340,7 @@ struct SortOperands {
340
true,
341
common::errors::InvalidArgument("input op is empty, please check!"));
342
for (std::size_t i = 0; i < operands->size() - 1; ++i) {
343
- if (!IsLhsBeforeRhs(operands->at(i), operands->at(i + 1))) {
+ if (IsLhsBeforeRhs(operands->at(i + 1), operands->at(i))) {
344
return false;
345
346
0 commit comments