Skip to content

Commit

Permalink
Resolved comments in PaddlePaddle#67117
Browse files Browse the repository at this point in the history
  • Loading branch information
MufanColin committed Aug 12, 2024
1 parent 6c610e5 commit 0f9ae81
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -859,11 +859,10 @@ bool EditDistanceOpInferSymbolicShape(
infer_context->AddEqualCstr(refs_dims[1], one);
}

symbol::ShapeOrDataDimExprs refs_shape_or_data_exprs(
symbol::ShapeOrDataDimExprs out_shape_or_data_exprs(
symbol::TensorShapeOrDataDimExprs(
std::vector<symbol::DimExpr>{refs_dims}));
infer_context->SetShapeOrDataForValue(op->result(0),
refs_shape_or_data_exprs);
infer_context->SetShapeOrDataForValue(op->result(0), out_shape_or_data_exprs);

symbol::ShapeOrDataDimExprs single_dim_expr(symbol::TensorShapeOrDataDimExprs(
std::vector<symbol::DimExpr>{symbol::DimExpr(1)}));
Expand Down

0 comments on commit 0f9ae81

Please sign in to comment.