diff --git a/paddle/phi/api/yaml/generator/filters.py b/paddle/phi/api/yaml/generator/filters.py index cda858ab6e74e9d639a969a2c60a82588e841daa..de9fdf25e9834cc3292fd9e76684a80c79cb9430 100644 --- a/paddle/phi/api/yaml/generator/filters.py +++ b/paddle/phi/api/yaml/generator/filters.py @@ -86,9 +86,9 @@ def to_opmaker_name(s): def to_opmaker_name_cstr(s): if s.endswith("_grad"): - return '"{}@GRAD"'.format(to_pascal_case(s[:-5])) + return '"{}@GRAD"'.format(s[:-5]) else: - return '"{}"'.format(to_pascal_case(s)) + return '"{}"'.format(s) def to_pascal_case(s):