Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
机器未来
Paddle
提交
fcd32950
P
Paddle
项目概览
机器未来
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
fcd32950
编写于
6月 15, 2022
作者:
Z
zyfncg
提交者:
GitHub
6月 15, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Rename yaml (#43470)
* rename yaml file * fix merge conflict * fix infrt
上级
346efe96
变更
12
展开全部
隐藏空白更改
内联
并排
Showing
12 changed file
with
4724 addition
and
4712 deletion
+4724
-4712
paddle/fluid/eager/auto_code_generator/final_state_generator/CMakeLists.txt
.../auto_code_generator/final_state_generator/CMakeLists.txt
+2
-2
paddle/phi/api/lib/CMakeLists.txt
paddle/phi/api/lib/CMakeLists.txt
+18
-18
python/paddle/utils/code_gen/api.yaml
python/paddle/utils/code_gen/api.yaml
+0
-2357
python/paddle/utils/code_gen/backward.yaml
python/paddle/utils/code_gen/backward.yaml
+0
-2328
python/paddle/utils/code_gen/cross_validate.py
python/paddle/utils/code_gen/cross_validate.py
+1
-1
python/paddle/utils/code_gen/legacy_api.yaml
python/paddle/utils/code_gen/legacy_api.yaml
+2357
-0
python/paddle/utils/code_gen/legacy_backward.yaml
python/paddle/utils/code_gen/legacy_backward.yaml
+2317
-0
python/paddle/utils/code_gen/new_api.yaml
python/paddle/utils/code_gen/new_api.yaml
+0
-0
python/paddle/utils/code_gen/new_backward.yaml
python/paddle/utils/code_gen/new_backward.yaml
+0
-0
tools/infrt/generate_phi_kernel_dialect.py
tools/infrt/generate_phi_kernel_dialect.py
+11
-3
tools/infrt/get_phi_kernel_function.sh
tools/infrt/get_phi_kernel_function.sh
+1
-1
tools/infrt/get_phi_kernel_info.py
tools/infrt/get_phi_kernel_info.py
+17
-2
未找到文件。
paddle/fluid/eager/auto_code_generator/final_state_generator/CMakeLists.txt
浏览文件 @
fcd32950
set
(
api_yaml_path
set
(
api_yaml_path
"
${
PADDLE_SOURCE_DIR
}
/python/paddle/utils/code_gen/api.yaml,
${
PADDLE_SOURCE_DIR
}
/python/paddle/utils/code_gen/
new
_api.yaml,
${
PADDLE_SOURCE_DIR
}
/python/paddle/utils/code_gen/sparse_api.yaml"
"
${
PADDLE_SOURCE_DIR
}
/python/paddle/utils/code_gen/api.yaml,
${
PADDLE_SOURCE_DIR
}
/python/paddle/utils/code_gen/
legacy
_api.yaml,
${
PADDLE_SOURCE_DIR
}
/python/paddle/utils/code_gen/sparse_api.yaml"
)
)
set
(
backward_yaml_path
set
(
backward_yaml_path
"
${
PADDLE_SOURCE_DIR
}
/python/paddle/utils/code_gen/backward.yaml,
${
PADDLE_SOURCE_DIR
}
/python/paddle/utils/code_gen/
new
_backward.yaml,
${
PADDLE_SOURCE_DIR
}
/python/paddle/utils/code_gen/sparse_bw_api.yaml"
"
${
PADDLE_SOURCE_DIR
}
/python/paddle/utils/code_gen/backward.yaml,
${
PADDLE_SOURCE_DIR
}
/python/paddle/utils/code_gen/
legacy
_backward.yaml,
${
PADDLE_SOURCE_DIR
}
/python/paddle/utils/code_gen/sparse_bw_api.yaml"
)
)
set
(
tmp_forwards_cc_path
set
(
tmp_forwards_cc_path
"
${
PADDLE_SOURCE_DIR
}
/paddle/fluid/eager/api/generated/eager_generated/forwards/tmp_dygraph_functions.cc"
"
${
PADDLE_SOURCE_DIR
}
/paddle/fluid/eager/api/generated/eager_generated/forwards/tmp_dygraph_functions.cc"
...
...
paddle/phi/api/lib/CMakeLists.txt
浏览文件 @
fcd32950
...
@@ -22,8 +22,8 @@ set(api_gen_base ${CMAKE_SOURCE_DIR}/python/paddle/utils/code_gen/api_base.py)
...
@@ -22,8 +22,8 @@ set(api_gen_base ${CMAKE_SOURCE_DIR}/python/paddle/utils/code_gen/api_base.py)
# forward api file
# forward api file
set
(
api_gen_file
${
CMAKE_SOURCE_DIR
}
/python/paddle/utils/code_gen/api_gen.py
)
set
(
api_gen_file
${
CMAKE_SOURCE_DIR
}
/python/paddle/utils/code_gen/api_gen.py
)
set
(
api_yaml_file
${
CMAKE_SOURCE_DIR
}
/python/paddle/utils/code_gen/api.yaml
)
set
(
api_yaml_file
${
CMAKE_SOURCE_DIR
}
/python/paddle/utils/code_gen/api.yaml
)
set
(
new
_api_yaml_file
set
(
legacy
_api_yaml_file
${
CMAKE_SOURCE_DIR
}
/python/paddle/utils/code_gen/
new
_api.yaml
)
${
CMAKE_SOURCE_DIR
}
/python/paddle/utils/code_gen/
legacy
_api.yaml
)
set
(
api_header_file
${
CMAKE_SOURCE_DIR
}
/paddle/phi/api/include/api.h
)
set
(
api_header_file
${
CMAKE_SOURCE_DIR
}
/paddle/phi/api/include/api.h
)
set
(
api_source_file
${
CMAKE_SOURCE_DIR
}
/paddle/phi/api/lib/api.cc
)
set
(
api_source_file
${
CMAKE_SOURCE_DIR
}
/paddle/phi/api/lib/api.cc
)
set
(
api_header_file_tmp
${
api_header_file
}
.tmp
)
set
(
api_header_file_tmp
${
api_header_file
}
.tmp
)
...
@@ -34,8 +34,8 @@ set(bw_api_gen_file
...
@@ -34,8 +34,8 @@ set(bw_api_gen_file
${
CMAKE_SOURCE_DIR
}
/python/paddle/utils/code_gen/backward_api_gen.py
)
${
CMAKE_SOURCE_DIR
}
/python/paddle/utils/code_gen/backward_api_gen.py
)
set
(
bw_api_yaml_file
set
(
bw_api_yaml_file
${
CMAKE_SOURCE_DIR
}
/python/paddle/utils/code_gen/backward.yaml
)
${
CMAKE_SOURCE_DIR
}
/python/paddle/utils/code_gen/backward.yaml
)
set
(
new
_bw_api_yaml_file
set
(
legacy
_bw_api_yaml_file
${
CMAKE_SOURCE_DIR
}
/python/paddle/utils/code_gen/
new
_backward.yaml
)
${
CMAKE_SOURCE_DIR
}
/python/paddle/utils/code_gen/
legacy
_backward.yaml
)
set
(
bw_api_header_file
set
(
bw_api_header_file
${
CMAKE_SOURCE_DIR
}
/paddle/phi/api/backward/backward_api.h
)
${
CMAKE_SOURCE_DIR
}
/paddle/phi/api/backward/backward_api.h
)
set
(
bw_api_source_file
${
CMAKE_SOURCE_DIR
}
/paddle/phi/api/lib/backward_api.cc
)
set
(
bw_api_source_file
${
CMAKE_SOURCE_DIR
}
/paddle/phi/api/lib/backward_api.cc
)
...
@@ -111,21 +111,21 @@ set(generated_argument_mapping_path
...
@@ -111,21 +111,21 @@ set(generated_argument_mapping_path
message
(
message
(
"parse api yamls:
"parse api yamls:
-
${
api_yaml_file
}
-
${
api_yaml_file
}
-
${
new
_api_yaml_file
}
-
${
legacy
_api_yaml_file
}
-
${
bw_api_yaml_file
}
-
${
bw_api_yaml_file
}
-
${
new
_bw_api_yaml_file
}
"
)
-
${
legacy
_bw_api_yaml_file
}
"
)
execute_process
(
execute_process
(
WORKING_DIRECTORY
${
CMAKE_SOURCE_DIR
}
/python/paddle/utils/code_gen
WORKING_DIRECTORY
${
CMAKE_SOURCE_DIR
}
/python/paddle/utils/code_gen
COMMAND
${
CMAKE_COMMAND
}
-E make_directory
${
parsed_api_dir
}
COMMAND
${
CMAKE_COMMAND
}
-E make_directory
${
parsed_api_dir
}
COMMAND
${
PYTHON_EXECUTABLE
}
parse_api.py --api_yaml_path ./api.yaml
COMMAND
${
PYTHON_EXECUTABLE
}
parse_api.py --api_yaml_path ./api.yaml
--output_path ./parsed_apis/api.parsed.yaml
--output_path ./parsed_apis/api.parsed.yaml
COMMAND
${
PYTHON_EXECUTABLE
}
parse_api.py --api_yaml_path ./
new
_api.yaml
COMMAND
${
PYTHON_EXECUTABLE
}
parse_api.py --api_yaml_path ./
legacy
_api.yaml
--output_path ./parsed_apis/
new
_api.parsed.yaml
--output_path ./parsed_apis/
legacy
_api.parsed.yaml
COMMAND
${
PYTHON_EXECUTABLE
}
parse_api.py --api_yaml_path ./backward.yaml
COMMAND
${
PYTHON_EXECUTABLE
}
parse_api.py --api_yaml_path ./backward.yaml
--output_path ./parsed_apis/backward_api.parsed.yaml --backward
--output_path ./parsed_apis/backward_api.parsed.yaml --backward
COMMAND
COMMAND
${
PYTHON_EXECUTABLE
}
parse_api.py --api_yaml_path ./
new
_backward.yaml
${
PYTHON_EXECUTABLE
}
parse_api.py --api_yaml_path ./
legacy
_backward.yaml
--output_path ./parsed_apis/
new
_backward_api.parsed.yaml --backward
--output_path ./parsed_apis/
legacy
_backward_api.parsed.yaml --backward
RESULTS_VARIABLE _results
)
RESULTS_VARIABLE _results
)
foreach
(
_result in
${
_results
}
)
foreach
(
_result in
${
_results
}
)
if
(
${
_result
}
)
if
(
${
_result
}
)
...
@@ -141,9 +141,9 @@ execute_process(
...
@@ -141,9 +141,9 @@ execute_process(
WORKING_DIRECTORY
${
CMAKE_SOURCE_DIR
}
/python/paddle/utils/code_gen
WORKING_DIRECTORY
${
CMAKE_SOURCE_DIR
}
/python/paddle/utils/code_gen
COMMAND
COMMAND
${
PYTHON_EXECUTABLE
}
cross_validate.py --forward_yaml_paths
${
PYTHON_EXECUTABLE
}
cross_validate.py --forward_yaml_paths
./parsed_apis/api.parsed.yaml ./parsed_apis/
new
_api.parsed.yaml
./parsed_apis/api.parsed.yaml ./parsed_apis/
legacy
_api.parsed.yaml
--backward_yaml_paths ./parsed_apis/backward_api.parsed.yaml
--backward_yaml_paths ./parsed_apis/backward_api.parsed.yaml
./parsed_apis/
new
_backward_api.parsed.yaml
./parsed_apis/
legacy
_backward_api.parsed.yaml
RESULT_VARIABLE _result
)
RESULT_VARIABLE _result
)
if
(
${
_result
}
)
if
(
${
_result
}
)
message
(
FATAL_ERROR
"api validation failed, exiting."
)
message
(
FATAL_ERROR
"api validation failed, exiting."
)
...
@@ -158,8 +158,8 @@ execute_process(
...
@@ -158,8 +158,8 @@ execute_process(
WORKING_DIRECTORY
${
CMAKE_SOURCE_DIR
}
/python/paddle/utils/code_gen
WORKING_DIRECTORY
${
CMAKE_SOURCE_DIR
}
/python/paddle/utils/code_gen
COMMAND
COMMAND
${
PYTHON_EXECUTABLE
}
generate_op.py --api_yaml_path
${
PYTHON_EXECUTABLE
}
generate_op.py --api_yaml_path
./parsed_apis/
new_
api.parsed.yaml --backward_api_yaml_path
./parsed_apis/api.parsed.yaml --backward_api_yaml_path
./parsed_apis/
new_
backward_api.parsed.yaml --output_op_path
./parsed_apis/backward_api.parsed.yaml --output_op_path
"
${
generated_op_path
}
.tmp"
--output_arg_map_path
"
${
generated_op_path
}
.tmp"
--output_arg_map_path
"
${
generated_argument_mapping_path
}
.tmp"
"
${
generated_argument_mapping_path
}
.tmp"
RESULT_VARIABLE _result
)
RESULT_VARIABLE _result
)
...
@@ -209,7 +209,7 @@ add_custom_command(
...
@@ -209,7 +209,7 @@ add_custom_command(
COMMAND
${
PYTHON_EXECUTABLE
}
-m pip install pyyaml
COMMAND
${
PYTHON_EXECUTABLE
}
-m pip install pyyaml
COMMAND
COMMAND
${
PYTHON_EXECUTABLE
}
${
api_gen_file
}
--api_yaml_path
${
api_yaml_file
}
${
PYTHON_EXECUTABLE
}
${
api_gen_file
}
--api_yaml_path
${
api_yaml_file
}
${
new
_api_yaml_file
}
--api_header_path
${
api_header_file_tmp
}
${
legacy
_api_yaml_file
}
--api_header_path
${
api_header_file_tmp
}
--api_header_path
${
api_header_file_tmp
}
--api_source_path
--api_header_path
${
api_header_file_tmp
}
--api_source_path
${
api_source_file_tmp
}
${
api_source_file_tmp
}
COMMAND
${
CMAKE_COMMAND
}
-E copy_if_different
${
api_header_file_tmp
}
COMMAND
${
CMAKE_COMMAND
}
-E copy_if_different
${
api_header_file_tmp
}
...
@@ -226,7 +226,7 @@ add_custom_command(
...
@@ -226,7 +226,7 @@ add_custom_command(
${
bw_api_source_file_tmp
}
${
bw_api_source_file_tmp
}
COMMAND
COMMAND
${
PYTHON_EXECUTABLE
}
${
bw_api_gen_file
}
--backward_yaml_path
${
PYTHON_EXECUTABLE
}
${
bw_api_gen_file
}
--backward_yaml_path
${
bw_api_yaml_file
}
${
new
_bw_api_yaml_file
}
--backward_header_path
${
bw_api_yaml_file
}
${
legacy
_bw_api_yaml_file
}
--backward_header_path
${
bw_api_header_file_tmp
}
--backward_source_path
${
bw_api_source_file_tmp
}
${
bw_api_header_file_tmp
}
--backward_source_path
${
bw_api_source_file_tmp
}
COMMAND
${
CMAKE_COMMAND
}
-E copy_if_different
${
bw_api_header_file_tmp
}
COMMAND
${
CMAKE_COMMAND
}
-E copy_if_different
${
bw_api_header_file_tmp
}
${
bw_api_header_file
}
${
bw_api_header_file
}
...
@@ -293,7 +293,7 @@ add_custom_command(
...
@@ -293,7 +293,7 @@ add_custom_command(
OUTPUT
${
dygraph_api_header_file
}
${
dygraph_api_source_file
}
OUTPUT
${
dygraph_api_header_file
}
${
dygraph_api_source_file
}
COMMAND
COMMAND
${
PYTHON_EXECUTABLE
}
${
im_api_gen_file
}
--api_yaml_path
${
api_yaml_file
}
${
PYTHON_EXECUTABLE
}
${
im_api_gen_file
}
--api_yaml_path
${
api_yaml_file
}
${
new
_api_yaml_file
}
--sparse_api_yaml_path
${
sparse_api_yaml_file
}
${
legacy
_api_yaml_file
}
--sparse_api_yaml_path
${
sparse_api_yaml_file
}
--dygraph_api_header_path
${
dygraph_api_header_file_tmp
}
--dygraph_api_header_path
${
dygraph_api_header_file_tmp
}
--dygraph_api_source_path
${
dygraph_api_source_file_tmp
}
--dygraph_api_source_path
${
dygraph_api_source_file_tmp
}
COMMAND
${
CMAKE_COMMAND
}
-E copy_if_different
${
dygraph_api_header_file_tmp
}
COMMAND
${
CMAKE_COMMAND
}
-E copy_if_different
${
dygraph_api_header_file_tmp
}
...
@@ -309,7 +309,7 @@ add_custom_command(
...
@@ -309,7 +309,7 @@ add_custom_command(
OUTPUT
${
wrapped_infermeta_header_file
}
${
wrapped_infermeta_source_file
}
OUTPUT
${
wrapped_infermeta_header_file
}
${
wrapped_infermeta_source_file
}
COMMAND
COMMAND
${
PYTHON_EXECUTABLE
}
${
wrapped_infermeta_gen_file
}
--api_yaml_path
${
PYTHON_EXECUTABLE
}
${
wrapped_infermeta_gen_file
}
--api_yaml_path
${
api_yaml_file
}
${
new
_api_yaml_file
}
--wrapped_infermeta_header_path
${
api_yaml_file
}
${
legacy
_api_yaml_file
}
--wrapped_infermeta_header_path
${
wrapped_infermeta_header_file
}
--wrapped_infermeta_source_path
${
wrapped_infermeta_header_file
}
--wrapped_infermeta_source_path
${
wrapped_infermeta_source_file
}
${
wrapped_infermeta_source_file
}
DEPENDS
${
api_yaml_file
}
${
wrapped_infermeta_gen_file
}
${
api_gen_base
}
DEPENDS
${
api_yaml_file
}
${
wrapped_infermeta_gen_file
}
${
api_gen_base
}
...
...
python/paddle/utils/code_gen/api.yaml
浏览文件 @
fcd32950
此差异已折叠。
点击以展开。
python/paddle/utils/code_gen/backward.yaml
浏览文件 @
fcd32950
此差异已折叠。
点击以展开。
python/paddle/utils/code_gen/cross_validate.py
浏览文件 @
fcd32950
...
@@ -43,7 +43,7 @@ if __name__ == "__main__":
...
@@ -43,7 +43,7 @@ if __name__ == "__main__":
parser
.
add_argument
(
'--backward_yaml_paths'
,
parser
.
add_argument
(
'--backward_yaml_paths'
,
type
=
str
,
type
=
str
,
nargs
=
'+'
,
nargs
=
'+'
,
default
=
str
(
current_dir
/
"backward
.yaml
.yaml"
),
default
=
str
(
current_dir
/
"backward
_api.parsed
.yaml"
),
help
=
"backward api yaml file."
)
help
=
"backward api yaml file."
)
args
=
parser
.
parse_args
()
args
=
parser
.
parse_args
()
...
...
python/paddle/utils/code_gen/legacy_api.yaml
0 → 100644
浏览文件 @
fcd32950
此差异已折叠。
点击以展开。
python/paddle/utils/code_gen/legacy_backward.yaml
0 → 100644
浏览文件 @
fcd32950
此差异已折叠。
点击以展开。
python/paddle/utils/code_gen/new_api.yaml
已删除
100644 → 0
浏览文件 @
346efe96
python/paddle/utils/code_gen/new_backward.yaml
已删除
100644 → 0
浏览文件 @
346efe96
tools/infrt/generate_phi_kernel_dialect.py
浏览文件 @
fcd32950
...
@@ -71,9 +71,17 @@ def get_skipped_kernel_list():
...
@@ -71,9 +71,17 @@ def get_skipped_kernel_list():
def
get_api_yaml_info
(
file_path
):
def
get_api_yaml_info
(
file_path
):
f
=
open
(
file_path
+
"/python/paddle/utils/code_gen/api.yaml"
,
"r"
)
apis
=
[]
cont
=
f
.
read
()
with
open
(
file_path
+
"/python/paddle/utils/code_gen/api.yaml"
,
'r'
)
as
f
:
return
yaml
.
load
(
cont
,
Loader
=
yaml
.
FullLoader
)
api_list
=
yaml
.
load
(
f
,
Loader
=
yaml
.
FullLoader
)
if
api_list
:
apis
.
extend
(
api_list
)
with
open
(
file_path
+
"/python/paddle/utils/code_gen/legacy_api.yaml"
,
'r'
)
as
f
:
legacy_api_list
=
yaml
.
load
(
f
,
Loader
=
yaml
.
FullLoader
)
if
legacy_api_list
:
apis
.
extend
(
legacy_api_list
)
return
apis
def
generate_kernel_name
(
op_name
,
place_str
):
def
generate_kernel_name
(
op_name
,
place_str
):
...
...
tools/infrt/get_phi_kernel_function.sh
浏览文件 @
fcd32950
...
@@ -78,7 +78,7 @@ done
...
@@ -78,7 +78,7 @@ done
#step 2:get simple general inferMeta function wrap info
#step 2:get simple general inferMeta function wrap info
temp_path
=
`
mktemp
-d
`
temp_path
=
`
mktemp
-d
`
python3
${
PADDLE_ROOT
}
/python/paddle/utils/code_gen/wrapped_infermeta_gen.py
\
python3
${
PADDLE_ROOT
}
/python/paddle/utils/code_gen/wrapped_infermeta_gen.py
\
--api_yaml_path
${
PADDLE_ROOT
}
/python/paddle/utils/code_gen/api.yaml
\
--api_yaml_path
${
PADDLE_ROOT
}
/python/paddle/utils/code_gen/api.yaml
${
PADDLE_ROOT
}
/python/paddle/utils/code_gen/legacy_api.yaml
\
--wrapped_infermeta_header_path
${
temp_path
}
/generate.h
\
--wrapped_infermeta_header_path
${
temp_path
}
/generate.h
\
--wrapped_infermeta_source_path
${
temp_path
}
/generate.cc
--wrapped_infermeta_source_path
${
temp_path
}
/generate.cc
...
...
tools/infrt/get_phi_kernel_info.py
浏览文件 @
fcd32950
...
@@ -21,13 +21,21 @@ from typing import List, Dict, Any
...
@@ -21,13 +21,21 @@ from typing import List, Dict, Any
skipped_phi_api_list_file
=
"/tools/infrt/skipped_phi_api.json"
skipped_phi_api_list_file
=
"/tools/infrt/skipped_phi_api.json"
api_yaml_file
=
"/python/paddle/utils/code_gen/api.yaml"
api_yaml_file
=
"/python/paddle/utils/code_gen/api.yaml"
legacy_api_yaml_file
=
"/python/paddle/utils/code_gen/legacy_api.yaml"
def
get_skipped_kernel_list
():
def
get_skipped_kernel_list
():
skiped_kernel_list
=
[]
skiped_kernel_list
=
[]
with
open
(
skipped_phi_api_list_file
,
'r'
)
as
f
:
with
open
(
skipped_phi_api_list_file
,
'r'
)
as
f
:
skiped_api_list
=
json
.
load
(
f
)
skiped_api_list
=
json
.
load
(
f
)
infer_meta_data
=
get_api_yaml_info
(
api_yaml_file
)
infer_meta_data
=
[]
api_meta_data
=
get_api_yaml_info
(
api_yaml_file
)
legacy_api_meta_data
=
get_api_yaml_info
(
legacy_api_yaml_file
)
if
api_meta_data
:
infer_meta_data
.
extend
(
api_meta_data
)
if
legacy_api_meta_data
:
infer_meta_data
.
extend
(
legacy_api_meta_data
)
for
api
in
infer_meta_data
:
for
api
in
infer_meta_data
:
if
"kernel"
not
in
api
or
"infer_meta"
not
in
api
:
if
"kernel"
not
in
api
or
"infer_meta"
not
in
api
:
continue
continue
...
@@ -365,7 +373,14 @@ if __name__ == "__main__":
...
@@ -365,7 +373,14 @@ if __name__ == "__main__":
args
=
parse_args
()
args
=
parse_args
()
skipped_phi_api_list_file
=
args
.
paddle_root_path
+
skipped_phi_api_list_file
skipped_phi_api_list_file
=
args
.
paddle_root_path
+
skipped_phi_api_list_file
api_yaml_file
=
args
.
paddle_root_path
+
api_yaml_file
api_yaml_file
=
args
.
paddle_root_path
+
api_yaml_file
infer_meta_data
=
get_api_yaml_info
(
api_yaml_file
)
legacy_api_yaml_file
=
args
.
paddle_root_path
+
legacy_api_yaml_file
infer_meta_data
=
[]
api_meta_data
=
get_api_yaml_info
(
api_yaml_file
)
legacy_api_meta_data
=
get_api_yaml_info
(
legacy_api_yaml_file
)
if
api_meta_data
:
infer_meta_data
.
extend
(
api_meta_data
)
if
legacy_api_meta_data
:
infer_meta_data
.
extend
(
legacy_api_meta_data
)
kernel_data
=
get_kernel_info
(
args
.
kernel_info_file
)
kernel_data
=
get_kernel_info
(
args
.
kernel_info_file
)
info_meta_wrap_data
=
get_infermeta_info
(
args
.
infermeta_wrap_file
)
info_meta_wrap_data
=
get_infermeta_info
(
args
.
infermeta_wrap_file
)
attr_data
=
get_attr_info
(
args
.
attr_info_file
)
attr_data
=
get_attr_info
(
args
.
attr_info_file
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录