From c7d6d9f4659d206dc52d2992c24c5070d52431fe Mon Sep 17 00:00:00 2001 From: huangjiyi <43315610+huangjiyi@users.noreply.github.com> Date: Fri, 9 Dec 2022 15:14:06 +0800 Subject: [PATCH] move ops_extra_info_gen.py from phi to fluid (#48926) --- paddle/fluid/operators/generator/CMakeLists.txt | 2 +- .../yaml => fluid/operators}/generator/ops_extra_info_gen.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename paddle/{phi/api/yaml => fluid/operators}/generator/ops_extra_info_gen.py (98%) diff --git a/paddle/fluid/operators/generator/CMakeLists.txt b/paddle/fluid/operators/generator/CMakeLists.txt index 39d90aab5a..53cbb990dc 100644 --- a/paddle/fluid/operators/generator/CMakeLists.txt +++ b/paddle/fluid/operators/generator/CMakeLists.txt @@ -207,7 +207,7 @@ endif() # op extra info file set(ops_extra_info_gen_file - ${CMAKE_SOURCE_DIR}/paddle/phi/api/yaml/generator/ops_extra_info_gen.py) + ${CMAKE_SOURCE_DIR}/paddle/fluid/operators/generator/ops_extra_info_gen.py) set(op_compat_yaml_file ${CMAKE_SOURCE_DIR}/paddle/phi/api/yaml/op_compat.yaml) set(ops_extra_info_file ${CMAKE_SOURCE_DIR}/paddle/fluid/operators/ops_extra_info.cc) diff --git a/paddle/phi/api/yaml/generator/ops_extra_info_gen.py b/paddle/fluid/operators/generator/ops_extra_info_gen.py similarity index 98% rename from paddle/phi/api/yaml/generator/ops_extra_info_gen.py rename to paddle/fluid/operators/generator/ops_extra_info_gen.py index 9109399f92..11856daeba 100644 --- a/paddle/phi/api/yaml/generator/ops_extra_info_gen.py +++ b/paddle/fluid/operators/generator/ops_extra_info_gen.py @@ -19,7 +19,7 @@ import yaml def map_code_template(attrs_str, attrs_checker_str): - return f"""// This file is generated by paddle/phi/api/yaml/generator/ops_extra_info_gen.py + return f"""// This file is generated by paddle/fluid/operators/generator/ops_extra_info_gen.py #include "paddle/fluid/operators/ops_extra_info.h" #include "paddle/phi/backends/gpu/cuda/cudnn_workspace_helper.h" -- GitLab