From 58d8ead23429a91c9ad6b4f719a3415a8c9588f8 Mon Sep 17 00:00:00 2001 From: zyfncg Date: Thu, 4 Aug 2022 10:52:14 +0800 Subject: [PATCH] fix bug of kernel signatore code-gene (#44859) --- paddle/phi/api/yaml/generator/filters.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paddle/phi/api/yaml/generator/filters.py b/paddle/phi/api/yaml/generator/filters.py index cda858ab6e7..de9fdf25e98 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): -- GitLab