Skip to content

Commit 71d48fc

Browse files
committed
fix some print info
1 parent a886f1d commit 71d48fc

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

paddle/cinn/hlir/dialect/operator/transforms/lowering_pass/collect_sym_expr.cc

+2-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ void VisitEachDimExpr(const symbol::ShapeOrDataDimExprs& shape_or_data,
7474
}
7575
},
7676
[&](const symbol::RankedTensorArrayShapeOrDataDimExprs& tensor_array) {
77-
PADDLE_THROW(phi::errors::Fatal("Dead code"));
77+
PADDLE_THROW(phi::errors::Fatal(
78+
"Dead code, TensorArray should not be handled in backend."));
7879
for (const symbol::DimExpr& dim_expr : tensor_array.GetShapeHint()) {
7980
DoEach(dim_expr);
8081
}

paddle/pir/src/dialect/shape/utils/shape_or_data_expr.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ std::ostream& operator<<(std::ostream& stream,
9595
}
9696
},
9797
[&](const RankedTensorArrayShapeOrDataDimExprs& tensor_array_shape_data) {
98-
stream << "TensorArray with first item shape"
98+
stream << "TensorArray with shape hint: "
9999
<< tensor_array_shape_data.GetShapeHint();
100100
},
101101
[&](const NullShapeOrDataDimExpr& null_shape_data) {

0 commit comments

Comments
 (0)