Skip to content

Commit 169c57d

Browse files
committed
Revert "Find Torch in module mode"
This reverts commit d7b7aea.
1 parent 211131f commit 169c57d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ if(EXECUTORCH_BUILD_PYBIND)
750750
endif()
751751

752752
# find pytorch lib, to allow pybind to take at::Tensor as input/output
753-
find_package(Torch REQUIRED)
753+
find_package(Torch CONFIG REQUIRED)
754754
find_library(
755755
TORCH_PYTHON_LIBRARY torch_python PATHS "${TORCH_INSTALL_PREFIX}/lib"
756756
)

0 commit comments

Comments
 (0)