diff options
author | vishwakftw <cs15btech11043@iith.ac.in> | 2018-10-04 12:00:29 -0700 |
---|---|---|
committer | Facebook Github Bot <facebook-github-bot@users.noreply.github.com> | 2018-10-04 12:11:02 -0700 |
commit | 39bd73ae513358e1fe5881e58b1ab6aea14bed41 (patch) | |
tree | a3b44be4da9321ac9d319348f0296732a45aad7f /CMakeLists.txt | |
parent | c064f8a89d2fd666a06ee9a9b0e635ce453b8efc (diff) | |
download | pytorch-39bd73ae513358e1fe5881e58b1ab6aea14bed41.tar.gz pytorch-39bd73ae513358e1fe5881e58b1ab6aea14bed41.tar.bz2 pytorch-39bd73ae513358e1fe5881e58b1ab6aea14bed41.zip |
Guard NumPy usage using USE_NUMPY (#11798)
Summary:
All usages of the `ndarray` construct have now been guarded with `USE_NUMPY`. This eliminates the requirement of NumPy while building PyTorch from source.
Fixes #11757
Reviewed By: Yangqing
Differential Revision: D10031862
Pulled By: SsnL
fbshipit-source-id: 32d84fd770a7714d544e2ca1895a3d7c75b3d712
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 8212aaf98f..2b79f76cb8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -99,6 +99,7 @@ option(USE_NUMA "Use NUMA (only available on Linux)" ON) cmake_dependent_option( USE_NVRTC "Use NVRTC. Only available if USE_CUDA is on." OFF "USE_CUDA" OFF) +option(USE_NUMPY "Use NumPy" ON) option(USE_OBSERVERS "Use observers module." OFF) option(USE_OPENCL "Use OpenCL" OFF) option(USE_OPENCV "Use OpenCV" ON) |