diff --git a/paddle/fluid/pir/dialect/op_generator/api_gen.py b/paddle/fluid/pir/dialect/op_generator/api_gen.py index 0fd92a2a1142d5..e25ad9704a2afb 100644 --- a/paddle/fluid/pir/dialect/op_generator/api_gen.py +++ b/paddle/fluid/pir/dialect/op_generator/api_gen.py @@ -555,7 +555,7 @@ def _gen_check_data_type(self, op_info, op_name): if ( op_name.endswith(('_grad', '_grad_', '_grad_dense', '_grad_sparse')) - or op_name in ["print", "hardshrink", "det"] + or op_name in ["print", "hardshrink", "det", "assign_out_"] or len(mapping_name_to_type) == 0 ): return ""