CARVIEW |
Navigation Menu
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Merge eager_generator #66083
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge eager_generator #66083
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
paddle/fluid/pybind/CMakeLists.txt
Outdated
set(EAGER_CODEGEN_DEPS eager_generator) | ||
if("${CMAKE_GENERATOR}" STREQUAL "Ninja") | ||
set(eager_generator_path "${CMAKE_CURRENT_BINARY_DIR}") | ||
message(1111, ${eager_generator_path}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这行想着删掉
paddle/fluid/pybind/CMakeLists.txt
Outdated
else() | ||
set(eager_generator_path | ||
"${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_BUILD_TYPE}") | ||
message(2222, ${eager_generator_path}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里也是
paddle/fluid/pybind/CMakeLists.txt
Outdated
@@ -438,7 +577,7 @@ if(WITH_PYTHON) | |||
add_custom_command( | |||
OUTPUT ${eager_impl_file} | |||
COMMAND | |||
${CMAKE_BINARY_DIR}/paddle/fluid/pybind/eager_legacy_op_function_generator_retry.bat | |||
${CMAKE_BINARY_DIR}/paddle/fluid/pybind/eager_generator_retry.bat |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里是前面生成的bat,你前面生成的文件名还是eager_legacy_op_function_generator_retry,Windows是找不到eager_generator_retry.bat的
paddle/fluid/pybind/generator.cc
Outdated
int main(int argc, char* argv[]) { | ||
if (argc == 2) { | ||
run_legacy_generator(argc, argv); | ||
} else if (argc == 3) { | ||
run_generator(argc, argv); | ||
} else { | ||
std::cerr << "argc must be 2 or 3" << std::endl; | ||
return -1; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里加一下注释,2是用来生成啥的,3是用来生成啥的。
81d892c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This reverts commit 04918d8.
* Fix * Fix * Fix
PR Category
Others
PR Types
Others
Description
eager_legacy_op_function_generator 合并到eager_generator 中,减少Build目录大小,约2.1G

Pcard-67012