未验证 提交 c42619d0 编写于 作者: W wanghuancoder 提交者: GitHub

delete cmake saved tensor hooks on infer (#46215)

上级 bfee398b
...@@ -78,10 +78,10 @@ cc_library( ...@@ -78,10 +78,10 @@ cc_library(
autograd_meta autograd_meta
hook_utils) hook_utils)
cc_library( if(NOT ((NOT WITH_PYTHON) AND ON_INFER))
cc_library(
saved_tensors_hooks saved_tensors_hooks
SRCS saved_tensors_hooks.cc SRCS saved_tensors_hooks.cc
DEPS hook_utils) DEPS hook_utils)
if(NOT ((NOT WITH_PYTHON) AND ON_INFER))
add_subdirectory(tests) add_subdirectory(tests)
endif() endif()
...@@ -41,8 +41,7 @@ set(PYBIND_DEPS ...@@ -41,8 +41,7 @@ set(PYBIND_DEPS
new_profiler new_profiler
auto_parallel auto_parallel
jit_layer jit_layer
jit_property jit_property)
saved_tensors_hooks)
if(WITH_PSCORE) if(WITH_PSCORE)
set(PYBIND_DEPS ${PYBIND_DEPS} ps_service) set(PYBIND_DEPS ${PYBIND_DEPS} ps_service)
...@@ -571,6 +570,7 @@ if(WITH_PYTHON) ...@@ -571,6 +570,7 @@ if(WITH_PYTHON)
list(APPEND PYBIND_DEPS python) list(APPEND PYBIND_DEPS python)
list(APPEND PYBIND_DEPS custom_operator) list(APPEND PYBIND_DEPS custom_operator)
list(APPEND PYBIND_DEPS custom_operator_node) list(APPEND PYBIND_DEPS custom_operator_node)
list(APPEND PYBIND_DEPS saved_tensors_hooks)
endif() endif()
cc_library( cc_library(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册