diff --git a/doc/paddle/api/gen_doc.py b/doc/paddle/api/gen_doc.py index 5e8bceb035292738d2a0d6d690ac4880f2d15d88..ce0d173805fabf55e99362e7f4250a5a240b87ee 100644 --- a/doc/paddle/api/gen_doc.py +++ b/doc/paddle/api/gen_doc.py @@ -143,6 +143,7 @@ def gen_en_files(root_path='paddle', api_label_file="api_label"): if is_filter_api(api): continue + raw_api = api api = get_display_api(api) doc_file = api.split(".")[-1] @@ -155,7 +156,7 @@ def gen_en_files(root_path='paddle', api_label_file="api_label"): os.mknod(f + en_suffix) gen = EnDocGenerator() with gen.guard(f + en_suffix): - gen.module_name = ".".join(api.split(".")[0:-1]) + gen.module_name = ".".join(raw_api.split(".")[0:-1]) gen.api = doc_file gen.print_header_reminder() gen.print_item()