Skip to content

Commit c4dd4b1

Browse files
committed
fixed Gru
1 parent 7835adc commit c4dd4b1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

paddle/fluid/pir/dialect/operator/interface/infer_symbolic_shape/multiary_infer_sym.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1400,8 +1400,9 @@ bool GruOpInferSymbolicShape(pir::Operation *op,
14001400
infer_context->SetShapeOrDataForValue(op->result(2), batch_hidden_shape);
14011401
}
14021402

1403-
symbol::TensorShapeOrDataDimExprs hidden_shape({input_shape[0], frame_size});
1404-
infer_context->SetShapeOrDataForValue(op->result(3), hidden_shape);
1403+
symbol::TensorShapeOrDataDimExprs hidden_shape_output(
1404+
{input_shape[0], frame_size});
1405+
infer_context->SetShapeOrDataForValue(op->result(3), hidden_shape_output);
14051406

14061407
return true;
14071408
}

0 commit comments

Comments
 (0)