From 0f9ae81a4ecba8c65463073bb2e743f72f15da66 Mon Sep 17 00:00:00 2001 From: MufanColin <76479709+MufanColin@users.noreply.github.com> Date: Mon, 12 Aug 2024 14:56:08 +0800 Subject: [PATCH] Resolved comments in https://github.com/PaddlePaddle/Paddle/pull/67117 --- .../interface/infer_symbolic_shape/multiary_infer_sym.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/paddle/fluid/pir/dialect/operator/interface/infer_symbolic_shape/multiary_infer_sym.cc b/paddle/fluid/pir/dialect/operator/interface/infer_symbolic_shape/multiary_infer_sym.cc index a79dcc4c2fc4e..ef2334d1f29fc 100644 --- a/paddle/fluid/pir/dialect/operator/interface/infer_symbolic_shape/multiary_infer_sym.cc +++ b/paddle/fluid/pir/dialect/operator/interface/infer_symbolic_shape/multiary_infer_sym.cc @@ -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{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(1)}));