Skip to content

Commit

Permalink
fix bug in broadcast_with_cf.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangbaizhou committed Apr 8, 2024
1 parent a4778ed commit ed7a4ef
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,12 @@ void UpdateGroupShapeExprs(
const auto& origin_shape_or_data =
origin_group->GetShapeOrDataExprs(origin_val);
if (origin_shape_or_data.data()) {
std::vector<symbol::DimExpr> shape_dim_expr_shape = {
symbol::DimExpr(static_cast<int64_t>(shape_dim_expr.size()))};
new_group->SetShapeOrDataExprs(
new_val,
symbol::ShapeOrDataDimExprs{symbol::TensorShapeOrDataDimExprs(
std::vector<symbol::DimExpr>{shape_dim_expr.size()},
shape_dim_expr)});
shape_dim_expr_shape, shape_dim_expr)});
} else {
new_group->SetShapeOrDataExprs(
new_val,
Expand Down

0 comments on commit ed7a4ef

Please sign in to comment.