From: =?utf-8?q?Timo_R=C3=B6hling?= <roehling@debian.org>
Date: Wed, 27 Oct 2021 12:35:22 +0200
Subject: Use system Pytorch

---
 3rdparty/cmake/FindPytorch.cmake | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/3rdparty/cmake/FindPytorch.cmake b/3rdparty/cmake/FindPytorch.cmake
index 08bf18b..20b536c 100644
--- a/3rdparty/cmake/FindPytorch.cmake
+++ b/3rdparty/cmake/FindPytorch.cmake
@@ -67,8 +67,7 @@ if(NOT Pytorch_FOUND)
     endif()
     
     # Use the cmake config provided by torch
-    find_package(Torch REQUIRED PATHS "${Pytorch_ROOT}"
-                 NO_DEFAULT_PATH)
+    find_package(Torch REQUIRED)
 
     if(BUILD_CUDA_MODULE)
         # Note: older versions of PyTorch have hard-coded cuda library paths, see:
