Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
eb102189
P
Paddle
项目概览
PaddlePaddle
/
Paddle
1 年多 前同步成功
通知
2302
Star
20931
Fork
5422
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1423
列表
看板
标记
里程碑
合并请求
543
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1,423
Issue
1,423
列表
看板
标记
里程碑
合并请求
543
合并请求
543
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
eb102189
编写于
11月 07, 2022
作者:
W
wanghuancoder
提交者:
GitHub
11月 07, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refine python lib link (#47681)
* refine python lib link
上级
624ffdf2
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
10 addition
and
2 deletion
+10
-2
paddle/fluid/eager/CMakeLists.txt
paddle/fluid/eager/CMakeLists.txt
+4
-0
paddle/fluid/eager/api/generated/eager_generated/backwards/CMakeLists.txt
...er/api/generated/eager_generated/backwards/CMakeLists.txt
+1
-0
paddle/fluid/eager/api/generated/eager_generated/forwards/CMakeLists.txt
...ger/api/generated/eager_generated/forwards/CMakeLists.txt
+1
-0
paddle/fluid/eager/auto_code_generator/generate_file_structures.py
...uid/eager/auto_code_generator/generate_file_structures.py
+4
-2
未找到文件。
paddle/fluid/eager/CMakeLists.txt
浏览文件 @
eb102189
...
...
@@ -78,6 +78,10 @@ cc_library(
autograd_meta
hook_utils
)
if
(
NOT
((
NOT WITH_PYTHON
)
AND ON_INFER
))
target_link_libraries
(
utils
${
PYTHON_LIBRARIES
}
)
endif
()
if
(
NOT
((
NOT WITH_PYTHON
)
AND ON_INFER
))
cc_library
(
saved_tensors_hooks
...
...
paddle/fluid/eager/api/generated/eager_generated/backwards/CMakeLists.txt
浏览文件 @
eb102189
...
...
@@ -9,4 +9,5 @@ if(NOT (NOT WITH_PYTHON AND ON_INFER))
SRCS nodes.cc
${
eager_manual_nodes
}
DEPS
${
eager_deps
}
)
add_dependencies
(
final_dygraph_node eager_codegen
)
target_link_libraries
(
final_dygraph_node
${
PYTHON_LIBRARIES
}
)
endif
()
paddle/fluid/eager/api/generated/eager_generated/forwards/CMakeLists.txt
浏览文件 @
eb102189
...
...
@@ -9,4 +9,5 @@ if(NOT (NOT WITH_PYTHON AND ON_INFER))
SRCS dygraph_functions.cc
${
eager_manual_functions
}
DEPS
${
eager_deps
}
)
add_dependencies
(
final_dygraph_function eager_codegen
)
target_link_libraries
(
final_dygraph_function
${
PYTHON_LIBRARIES
}
)
endif
()
paddle/fluid/eager/auto_code_generator/generate_file_structures.py
浏览文件 @
eb102189
...
...
@@ -143,7 +143,8 @@ def GenerateFileStructureForIntermediateDygraph(eager_dir, split_count):
for
i
in
range
(
split_count
):
f
.
write
(
"nodes"
+
str
(
i
+
1
)
+
".cc "
)
f
.
write
(
"${fluid_manual_nodes} DEPS ${eager_deps} ${fluid_deps})
\n
"
)
f
.
write
(
"add_dependencies(dygraph_node copy_dygraph_node)"
)
f
.
write
(
"add_dependencies(dygraph_node copy_dygraph_node)
\n
"
)
f
.
write
(
"target_link_libraries(dygraph_node ${PYTHON_LIBRARIES})
\n
"
)
with
open
(
forwards_level_cmakelist_path
,
"w"
)
as
f
:
f
.
write
(
"add_custom_target(
\n
"
)
...
...
@@ -181,8 +182,9 @@ def GenerateFileStructureForIntermediateDygraph(eager_dir, split_count):
"${fluid_manual_functions} DEPS ${eager_deps} ${fluid_deps} ${GLOB_OP_LIB} ${GLOB_OPERATOR_DEPS})
\n
"
)
f
.
write
(
"add_dependencies(dygraph_function copy_dygraph_forward_functions)"
"add_dependencies(dygraph_function copy_dygraph_forward_functions)
\n
"
)
f
.
write
(
"target_link_libraries(dygraph_function ${PYTHON_LIBRARIES})
\n
"
)
with
open
(
generated_level_cmakelist_path
,
"w"
)
as
f
:
f
.
write
(
"add_subdirectory(forwards)
\n
add_subdirectory(nodes)"
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录