Skip to content

Commit af89954

Browse files
modify assign inplace (#68751)
1 parent 079677e commit af89954

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paddle/fluid/framework/new_executor/pir_adaptor/pir_adaptor_util.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ bool IsNeedVarInplace(pir::Operation* op,
692692
pir::Value value,
693693
std::string op_name) {
694694
return (value.type().isa<paddle::dialect::DenseTensorArrayType>() ||
695-
op_name == "pd_op.assign_value_");
695+
op_name == "pd_op.assign_value_" || op_name == "pd_op.assign_out_");
696696
}
697697

698698
// NOTE(chenxi67): Here, we only perform inplace processing for variables that

0 commit comments

Comments
 (0)