未验证 提交 e1956ab5 编写于 作者: R risemeup1 提交者: GitHub

fix bug that touch __init__.py (#50793)

上级 f7b45b3e
......@@ -583,7 +583,7 @@ if(WITH_PYTHON)
${PADDLE_BINARY_DIR}/python/paddle/distributed/fleet/proto)
file(TOUCH
${PADDLE_BINARY_DIR}/python/paddle/distributed/fleet/proto/__init__.py)
file(TOUCH __init__.py)
file(TOUCH ${CMAKE_CURRENT_BINARY_DIR}/__init__.py)
add_dependencies(
framework_py_proto trainer_py_proto distributed_strategy_py_proto
pass_desc_py_proto ps_py_proto pslib_py_proto)
......
......@@ -3,7 +3,7 @@ proto_library(phi_profiler_proto SRCS profiler.proto)
if(WITH_PYTHON AND EXISTS ${PADDLE_BINARY_DIR})
set(FLUID_PATH ${PADDLE_BINARY_DIR}/python/paddle/fluid)
py_proto_compile(profiler_py_proto SRCS profiler.proto)
file(TOUCH __init__.py)
file(TOUCH ${CMAKE_CURRENT_BINARY_DIR}/__init__.py)
if(NOT WIN32)
add_custom_command(
TARGET profiler_py_proto
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册