stevenygd / PointFlow

PointFlow : 3D Point Cloud Generation with Continuous Normalizing Flows
https://www.guandaoyang.com/PointFlow/
MIT License
720 stars 101 forks source link

Compilation Error #22

Closed aespielberg closed 3 years ago

aespielberg commented 3 years ago

Tried to install using the ./install.sh command. What ensued was an extremely long compilation error. I don't know where to start debugging this, but it appears the error is in compilation of structural_loss.o

I am on python3.6 (conda), CUDA 10.1, pytorch 1.7.1.

The error is actually far too large to paste here, so I'm abridging much of the middle of the stack trace.

For what it's worth, my gcc and g++ version are both 5.5.0.

$ ./install.sh 
Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /home/user1/anaconda3/envs/PointFlow

  added / updated specs:
    - matplotlib
    - numpy
    - pillow
    - scikit-learn
    - scipy
    - tqdm

The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    kiwisolver-1.3.0           |   py36h2531618_0          80 KB
    matplotlib-base-3.3.2      |   py36h817c723_0         5.1 MB
    scikit-learn-0.23.2        |   py36h0573a6f_0         5.0 MB
    scipy-1.5.2                |   py36h0b6359f_0        14.4 MB
    tornado-6.1                |   py36h27cfd23_0         581 KB
    ------------------------------------------------------------
                                           Total:        25.2 MB

The following NEW packages will be INSTALLED:

  cycler             pkgs/main/linux-64::cycler-0.10.0-py36_0
  dbus               pkgs/main/linux-64::dbus-1.13.18-hb2f20db_0
  expat              pkgs/main/linux-64::expat-2.2.10-he6710b0_2
  fontconfig         pkgs/main/linux-64::fontconfig-2.13.0-h9420a91_0
  glib               pkgs/main/linux-64::glib-2.66.1-h92f7085_0
  gst-plugins-base   pkgs/main/linux-64::gst-plugins-base-1.14.0-hbbd80ab_1
  gstreamer          pkgs/main/linux-64::gstreamer-1.14.0-hb31296c_0
  icu                pkgs/main/linux-64::icu-58.2-he6710b0_3
  joblib             pkgs/main/noarch::joblib-1.0.0-pyhd3eb1b0_0
  kiwisolver         pkgs/main/linux-64::kiwisolver-1.3.0-py36h2531618_0
  libgfortran-ng     pkgs/main/linux-64::libgfortran-ng-7.3.0-hdf63c60_0
  libuuid            pkgs/main/linux-64::libuuid-1.0.3-h1bed415_2
  libxcb             pkgs/main/linux-64::libxcb-1.14-h7b6447c_0
  libxml2            pkgs/main/linux-64::libxml2-2.9.10-hb55368b_3
  matplotlib         pkgs/main/linux-64::matplotlib-3.3.2-h06a4308_0
  matplotlib-base    pkgs/main/linux-64::matplotlib-base-3.3.2-py36h817c723_0
  pcre               pkgs/main/linux-64::pcre-8.44-he6710b0_0
  pyparsing          pkgs/main/noarch::pyparsing-2.4.7-py_0
  pyqt               pkgs/main/linux-64::pyqt-5.9.2-py36h05f1152_2
  python-dateutil    pkgs/main/noarch::python-dateutil-2.8.1-py_0
  qt                 pkgs/main/linux-64::qt-5.9.7-h5867ecd_1
  scikit-learn       pkgs/main/linux-64::scikit-learn-0.23.2-py36h0573a6f_0
  scipy              pkgs/main/linux-64::scipy-1.5.2-py36h0b6359f_0
  sip                pkgs/main/linux-64::sip-4.19.8-py36hf484d3e_0
  threadpoolctl      pkgs/main/noarch::threadpoolctl-2.1.0-pyh5ca1d4c_0
  tornado            pkgs/main/linux-64::tornado-6.1-py36h27cfd23_0
  tqdm               pkgs/main/noarch::tqdm-4.54.1-pyhd3eb1b0_0

Downloading and Extracting Packages
scikit-learn-0.23.2  | 5.0 MB    | ##################################### | 100% 
kiwisolver-1.3.0     | 80 KB     | ##################################### | 100% 
scipy-1.5.2          | 14.4 MB   | ##################################### | 100% 
tornado-6.1          | 581 KB    | ##################################### | 100% 
matplotlib-base-3.3. | 5.1 MB    | ##################################### | 100% 
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
Collecting tensorflow-gpu==1.13.1
  Downloading tensorflow_gpu-1.13.1-cp36-cp36m-manylinux1_x86_64.whl (345.2 MB)
     |████████████████████████████████| 345.2 MB 6.7 kB/s 
Requirement already satisfied: wheel>=0.26 in /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages (from tensorflow-gpu==1.13.1) (0.36.2)
Requirement already satisfied: six>=1.10.0 in /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages (from tensorflow-gpu==1.13.1) (1.15.0)
Requirement already satisfied: numpy>=1.13.3 in /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages (from tensorflow-gpu==1.13.1) (1.19.2)
Collecting absl-py>=0.1.6
  Using cached absl_py-0.11.0-py3-none-any.whl (127 kB)
Collecting astor>=0.6.0
  Using cached astor-0.8.1-py2.py3-none-any.whl (27 kB)
Collecting gast>=0.2.0
  Using cached gast-0.4.0-py3-none-any.whl (9.8 kB)
Collecting grpcio>=1.8.6
  Downloading grpcio-1.34.0-cp36-cp36m-manylinux2014_x86_64.whl (4.0 MB)
     |████████████████████████████████| 4.0 MB 107.8 MB/s 
Collecting keras-applications>=1.0.6
  Using cached Keras_Applications-1.0.8-py3-none-any.whl (50 kB)
Collecting keras-preprocessing>=1.0.5
  Using cached Keras_Preprocessing-1.1.2-py2.py3-none-any.whl (42 kB)
Collecting protobuf>=3.6.1
  Using cached protobuf-3.14.0-cp36-cp36m-manylinux1_x86_64.whl (1.0 MB)
Collecting tensorboard<1.14.0,>=1.13.0
  Downloading tensorboard-1.13.1-py3-none-any.whl (3.2 MB)
     |████████████████████████████████| 3.2 MB 62.0 MB/s 
Collecting markdown>=2.6.8
  Using cached Markdown-3.3.3-py3-none-any.whl (96 kB)
Collecting tensorflow-estimator<1.14.0rc0,>=1.13.0
  Downloading tensorflow_estimator-1.13.0-py2.py3-none-any.whl (367 kB)
     |████████████████████████████████| 367 kB 106.9 MB/s 
Collecting mock>=2.0.0
  Downloading mock-4.0.3-py3-none-any.whl (28 kB)
Collecting termcolor>=1.1.0
  Using cached termcolor-1.1.0-py3-none-any.whl
Collecting werkzeug>=0.11.15
  Using cached Werkzeug-1.0.1-py2.py3-none-any.whl (298 kB)
Collecting h5py
  Downloading h5py-3.1.0-cp36-cp36m-manylinux1_x86_64.whl (4.0 MB)
     |████████████████████████████████| 4.0 MB 100.8 MB/s 
Collecting cached-property
  Using cached cached_property-1.5.2-py2.py3-none-any.whl (7.6 kB)
Collecting importlib-metadata
  Downloading importlib_metadata-3.3.0-py3-none-any.whl (10 kB)
Requirement already satisfied: typing-extensions>=3.6.4 in /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages (from importlib-metadata->markdown>=2.6.8->tensorboard<1.14.0,>=1.13.0->tensorflow-gpu==1.13.1) (3.7.4.3)
Collecting zipp>=0.5
  Using cached zipp-3.4.0-py3-none-any.whl (5.2 kB)
Installing collected packages: zipp, importlib-metadata, cached-property, werkzeug, protobuf, mock, markdown, h5py, grpcio, absl-py, termcolor, tensorflow-estimator, tensorboard, keras-preprocessing, keras-applications, gast, astor, tensorflow-gpu
Successfully installed absl-py-0.11.0 astor-0.8.1 cached-property-1.5.2 gast-0.4.0 grpcio-1.34.0 h5py-3.1.0 importlib-metadata-3.3.0 keras-applications-1.0.8 keras-preprocessing-1.1.2 markdown-3.3.3 mock-4.0.3 protobuf-3.14.0 tensorboard-1.13.1 tensorflow-estimator-1.13.0 tensorflow-gpu-1.13.1 termcolor-1.1.0 werkzeug-1.0.1 zipp-3.4.0
Collecting tensorboardX==1.7
  Using cached tensorboardX-1.7-py2.py3-none-any.whl (238 kB)
Requirement already satisfied: numpy in /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages (from tensorboardX==1.7) (1.19.2)
Requirement already satisfied: protobuf>=3.2.0 in /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages (from tensorboardX==1.7) (3.14.0)
Requirement already satisfied: six in /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages (from tensorboardX==1.7) (1.15.0)
Installing collected packages: tensorboardX
Successfully installed tensorboardX-1.7
CXX src/structural_loss.cpp
g++ src/structural_loss.cpp -MMD -MP -pthread -fPIC -fwrapv -std=c++11 -DNDEBUG -O3 -I./ -I/usr/local/cuda/include -I/home/user1/anaconda3/envs/PointFlow/include/python3.6m -I/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include -I/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/TH -I/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/THC -DTORCH_API_INCLUDE_EXTENSION_H -D_GLIBCXX_USE_CXX11_ABI=0 -Wall -Wno-sign-compare -Wcomment -c -o objs/structural_loss.o
In file included from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/ArrayRef.h:19:0,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/core/DispatchKey.h:7,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/core/Backend.h:4,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/core/Layout.h:3,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:4,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/cuda/CUDAContext.h:14,
                 from src/structural_loss.cpp:1:
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/C++17.h:24:2: error: #error You need C++14 to compile PyTorch
 #error You need C++14 to compile PyTorch
  ^
In file included from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/extension.h:4:0,
                 from src/structural_loss.cpp:2:
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:4:2: error: #error C++14 or later compatible compiler is required to use PyTorch.
 #error C++14 or later compatible compiler is required to use PyTorch.
  ^
In file included from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3:0,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/extension.h:4,
                 from src/structural_loss.cpp:2:
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/ATen.h:4:2: error: #error C++14 or later compatible compiler is required to use ATen.
 #error C++14 or later compatible compiler is required to use ATen.
  ^
In file included from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/Parallel.h:149:0,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:12,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/extension.h:4,
                 from src/structural_loss.cpp:2:
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/ParallelOpenMP.h:84:0: warning: ignoring #pragma omp parallel [-Wunknown-pragmas]
 #pragma omp parallel for if ((end - begin) >= grain_size)
 ^
In file included from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:5:0,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/core/Device.h:5,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:3,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/cuda/CUDAContext.h:14,
                 from src/structural_loss.cpp:1:
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/StringUtil.h:86:17: error: expected primary-expression before ‘auto’
 inline decltype(auto) str(const Args&... args) {
                 ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/StringUtil.h:86:17: error: expected ‘)’ before ‘auto’
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/StringUtil.h:86:8: error: expected unqualified-id before ‘decltype’
 inline decltype(auto) str(const Args&... args) {
        ^
In file included from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/core/Device.h:5:0,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:3,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/cuda/CUDAContext.h:14,
                 from src/structural_loss.cpp:1:
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/core/Device.h: In member function ‘void c10::Device::validate()’:
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:333:9: error: ‘str’ is not a member of ‘c10’
         ::c10::str(__VA_ARGS__),                                      \
         ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:214:80: note: in definition of macro ‘C10_THROW_ERROR’
 row ::c10::err_type({__func__, __FILE__, static_cast<uint32_t>(__LINE__)}, msg)
                                                                            ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:318:3: note: in expansion of macro ‘TORCH_CHECK_WITH_MSG’
   TORCH_CHECK_WITH_MSG(error_t, cond, "", __VA_ARGS__)
   ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:341:32: note: in expansion of macro ‘TORCH_CHECK_WITH’
 #define TORCH_CHECK(cond, ...) TORCH_CHECK_WITH(Error, cond, __VA_ARGS__)
                                ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/core/Device.h:96:5: note: in expansion of macro ‘TORCH_CHECK’
     TORCH_CHECK(index_ == -1 || index_ >= 0,
     ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:333:9: error: ‘str’ is not a member of ‘c10’
         ::c10::str(__VA_ARGS__),                                      \
         ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:214:80: note: in definition of macro ‘C10_THROW_ERROR’
 row ::c10::err_type({__func__, __FILE__, static_cast<uint32_t>(__LINE__)}, msg)
                                                                            ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:318:3: note: in expansion of macro ‘TORCH_CHECK_WITH_MSG’
   TORCH_CHECK_WITH_MSG(error_t, cond, "", __VA_ARGS__)
   ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:341:32: note: in expansion of macro ‘TORCH_CHECK_WITH’
 #define TORCH_CHECK(cond, ...) TORCH_CHECK_WITH(Error, cond, __VA_ARGS__)
                                ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/core/Device.h:98:5: note: in expansion of macro ‘TORCH_CHECK’
     TORCH_CHECK(!is_cpu() || index_ <= 0,
     ^
In file included from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/ArrayRef.h:18:0,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/core/DispatchKey.h:7,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/core/Backend.h:4,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/core/Layout.h:3,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:4,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/cuda/CUDAContext.h:14,
                 from src/structural_loss.cpp:1:
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/SmallVector.h: At global scope:
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/SmallVector.h:965:38: error: ‘std::enable_if_t’ has not been declared
   template <typename Container, std::enable_if_t<
                                      ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/SmallVector.h:965:49: error: expected ‘>’ before ‘<’ token
   template <typename Container, std::enable_if_t<
                                                 ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/SmallVector.h:999:38: error: ‘std::enable_if_t’ has not been declared
   template <typename Container, std::enable_if_t<
                                      ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/SmallVector.h:999:49: error: expected ‘>’ before ‘<’ token
   template <typename Container, std::enable_if_t<
                                                 ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/SmallVector.h:1030:38: error: ‘std::enable_if_t’ has not been declared
   template <typename Container, std::enable_if_t<
                                      ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/SmallVector.h:1030:49: error: expected ‘>’ before ‘<’ token
   template <typename Container, std::enable_if_t<
                                                 ^
In file included from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/ArrayRef.h:19:0,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/core/DispatchKey.h:7,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/core/Backend.h:4,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/core/Layout.h:3,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:4,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/cuda/CUDAContext.h:14,
                 from src/structural_loss.cpp:1:
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/C++17.h:61:25: error: expected template-name before ‘<’ token
     : std::conditional_t<bool(B1::value), conjunction<Bn...>, B1> {};
                         ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/C++17.h:61:25: error: expected ‘{’ before ‘<’ token
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/C++17.h:61:25: error: expected unqualified-id before ‘<’ token
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/C++17.h:68:25: error: expected template-name before ‘<’ token
     : std::conditional_t<bool(B1::value), B1, disjunction<Bn...>>  { };
                         ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/C++17.h:68:25: error: expected ‘{’ before ‘<’ token
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/C++17.h:68:25: error: expected unqualified-id before ‘<’ token
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/C++17.h:121:37: error: expected primary-expression before ‘auto’
 CUDA_HOST_DEVICE constexpr decltype(auto) apply_impl(F&& f, Tuple&& t, std::ind
                                     ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/C++17.h:121:37: error: expected ‘)’ before ‘auto’
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/C++17.h:121:28: error: expected unqualified-id before ‘decltype’
 CUDA_HOST_DEVICE constexpr decltype(auto) apply_impl(F&& f, Tuple&& t, std::ind
                            ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/C++17.h:129:37: error: expected primary-expression before ‘auto’
 CUDA_HOST_DEVICE constexpr decltype(auto) apply(F&& f, Tuple&& t) {
                                     ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/C++17.h:129:37: error: expected ‘)’ before ‘auto’
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/C++17.h:129:28: error: expected unqualified-id before ‘decltype’
 CUDA_HOST_DEVICE constexpr decltype(auto) apply(F&& f, Tuple&& t) {
                            ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/C++17.h:167:12: error: expected primary-expression before ‘auto’
   decltype(auto) operator()(T&& arg) {
            ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/C++17.h:167:12: error: expected ‘)’ before ‘auto’
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/C++17.h:167:3: error: expected unqualified-id before ‘decltype’
   decltype(auto) operator()(T&& arg) {
   ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/C++17.h:189:57: error: ‘std::enable_if_t’ has not been declared
   template<class ThenCallback, class ElseCallback, std::enable_if_t<function_ta
                                                         ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/C++17.h:189:68: error: expected ‘>’ before ‘<’ token
   template<class ThenCallback, class ElseCallback, std::enable_if_t<function_ta
                                                                    ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/C++17.h:190:19: error: expected primary-expression before ‘auto’
   static decltype(auto) call(ThenCallback&& thenCallback, ElseCallback&& /* els
                   ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/C++17.h:190:19: error: expected ‘)’ before ‘auto’
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/C++17.h:190:10: error: expected unqualified-id before ‘decltype’
   static decltype(auto) call(ThenCallback&& thenCallback, ElseCallback&& /* els
          ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/C++17.h:196:57: error: ‘std::enable_if_t’ has not been declared
   template<class ThenCallback, class ElseCallback, std::enable_if_t<!function_t
                                                         ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/C++17.h:196:68: error: expected ‘>’ before ‘<’ token
   template<class ThenCallback, class ElseCallback, std::enable_if_t<!function_t
                                                                    ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/C++17.h:197:19: error: expected primary-expression before ‘auto’
   static decltype(auto) call(ThenCallback&& thenCallback, ElseCallback&& /* els
                   ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/C++17.h:197:19: error: expected ‘)’ before ‘auto’
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/C++17.h:197:10: error: expected unqualified-id before ‘decltype’
   static decltype(auto) call(ThenCallback&& thenCallback, ElseCallback&& /* els
          ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/C++17.h:204:57: error: ‘std::enable_if_t’ has not been declared
   template<class ThenCallback, class ElseCallback, std::enable_if_t<function_ta
                                                         ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/C++17.h:204:68: error: expected ‘>’ before ‘<’ token
   template<class ThenCallback, class ElseCallback, std::enable_if_t<function_ta
                                                                    ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/C++17.h:205:19: error: expected primary-expression before ‘auto’
   static decltype(auto) call(ThenCallback&& /* thenCallback */, ElseCallback&& 
                   ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/C++17.h:205:19: error: expected ‘)’ before ‘auto’
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/C++17.h:205:10: error: expected unqualified-id before ‘decltype’
   static decltype(auto) call(ThenCallback&& /* thenCallback */, ElseCallback&& 
          ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/C++17.h:211:57: error: ‘std::enable_if_t’ has not been declared
   template<class ThenCallback, class ElseCallback, std::enable_if_t<!function_t
                                                         ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/C++17.h:211:68: error: expected ‘>’ before ‘<’ token
   template<class ThenCallback, class ElseCallback, std::enable_if_t<!function_t
                                                                    ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/C++17.h:212:19: error: expected primary-expression before ‘auto’
   static decltype(auto) call(ThenCallback&& /* thenCallback */, ElseCallback&& 
                   ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/C++17.h:212:19: error: expected ‘)’ before ‘auto’
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/C++17.h:212:10: error: expected unqualified-id before ‘decltype’
   static decltype(auto) call(ThenCallback&& /* thenCallback */, ElseCallback&& 
          ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/C++17.h:263:10: error: expected primary-expression before ‘auto’
 decltype(auto) if_constexpr(ThenCallback&& thenCallback, ElseCallback&& elseCal
          ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/C++17.h:263:10: error: expected ‘)’ before ‘auto’
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/C++17.h:263:1: error: expected unqualified-id before ‘decltype’
 decltype(auto) if_constexpr(ThenCallback&& thenCallback, ElseCallback&& elseCal
 ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/C++17.h:288:10: error: expected primary-expression before ‘auto’
 decltype(auto) if_constexpr(ThenCallback&& thenCallback) {
          ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/C++17.h:288:10: error: expected ‘)’ before ‘auto’
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/C++17.h:288:1: error: expected unqualified-id before ‘decltype’
 decltype(auto) if_constexpr(ThenCallback&& thenCallback) {
 ^
In file included from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/core/Device.h:5:0,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:3,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/cuda/CUDAContext.h:14,
                 from src/structural_loss.cpp:1:
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/ArrayRef.h: In member function ‘constexpr const T& c10::ArrayRef<T>::front() const’:
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:333:9: error: ‘str’ is not a member of ‘c10’
         ::c10::str(__VA_ARGS__),                                      \
         ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:214:80: note: in definition of macro ‘C10_THROW_ERROR’
 row ::c10::err_type({__func__, __FILE__, static_cast<uint32_t>(__LINE__)}, msg)
                                                                            ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:318:3: note: in expansion of macro ‘TORCH_CHECK_WITH_MSG’
   TORCH_CHECK_WITH_MSG(error_t, cond, "", __VA_ARGS__)
   ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:341:32: note: in expansion of macro ‘TORCH_CHECK_WITH’
 #define TORCH_CHECK(cond, ...) TORCH_CHECK_WITH(Error, cond, __VA_ARGS__)
                                ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/ArrayRef.h:149:5: note: in expansion of macro ‘TORCH_CHECK’
     TORCH_CHECK(!empty(), "ArrayRef: attempted to access front() of empty list"
     ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/ArrayRef.h: In member function ‘constexpr const T& c10::ArrayRef<T>::back() const’:
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:333:9: error: ‘str’ is not a member of ‘c10’
         ::c10::str(__VA_ARGS__),                                      \
         ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:214:80: note: in definition of macro ‘C10_THROW_ERROR’
 row ::c10::err_type({__func__, __FILE__, static_cast<uint32_t>(__LINE__)}, msg)
                                                                            ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:318:3: note: in expansion of macro ‘TORCH_CHECK_WITH_MSG’
   TORCH_CHECK_WITH_MSG(error_t, cond, "", __VA_ARGS__)
   ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:341:32: note: in expansion of macro ‘TORCH_CHECK_WITH’
 #define TORCH_CHECK(cond, ...) TORCH_CHECK_WITH(Error, cond, __VA_ARGS__)
                                ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/ArrayRef.h:155:5: note: in expansion of macro ‘TORCH_CHECK’
     TORCH_CHECK(!empty(), "ArrayRef: attempted to access back() of empty list")
     ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/ArrayRef.h: In member function ‘constexpr c10::ArrayRef<T> c10::ArrayRef<T>::slice(size_t, size_t) const’:
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:333:9: error: ‘str’ is not a member of ‘c10’
         ::c10::str(__VA_ARGS__),                                      \
         ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:214:80: note: in definition of macro ‘C10_THROW_ERROR’
 row ::c10::err_type({__func__, __FILE__, static_cast<uint32_t>(__LINE__)}, msg)
                                                                            ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:318:3: note: in expansion of macro ‘TORCH_CHECK_WITH_MSG’
   TORCH_CHECK_WITH_MSG(error_t, cond, "", __VA_ARGS__)
   ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:341:32: note: in expansion of macro ‘TORCH_CHECK_WITH’
 #define TORCH_CHECK(cond, ...) TORCH_CHECK_WITH(Error, cond, __VA_ARGS__)
                                ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/ArrayRef.h:167:5: note: in expansion of macro ‘TORCH_CHECK’
     TORCH_CHECK(
     ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/ArrayRef.h: In member function ‘constexpr const T& c10::ArrayRef<T>::at(size_t) const’:
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:333:9: error: ‘str’ is not a member of ‘c10’
         ::c10::str(__VA_ARGS__),                                      \
         ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:214:80: note: in definition of macro ‘C10_THROW_ERROR’
 row ::c10::err_type({__func__, __FILE__, static_cast<uint32_t>(__LINE__)}, msg)
                                                                            ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:318:3: note: in expansion of macro ‘TORCH_CHECK_WITH_MSG’
   TORCH_CHECK_WITH_MSG(error_t, cond, "", __VA_ARGS__)
   ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:341:32: note: in expansion of macro ‘TORCH_CHECK_WITH’
 #define TORCH_CHECK(cond, ...) TORCH_CHECK_WITH(Error, cond, __VA_ARGS__)
                                ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/ArrayRef.h:192:5: note: in expansion of macro ‘TORCH_CHECK’
     TORCH_CHECK(
     ^
In file included from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/core/Backend.h:5:0,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/core/Layout.h:3,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:4,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/cuda/CUDAContext.h:14,
                 from src/structural_loss.cpp:1:
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/core/DispatchKeySet.h: In constructor ‘c10::DispatchKeySet::DispatchKeySet(std::initializer_list<c10::DispatchKey>)’:
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/core/DispatchKeySet.h:62:3: error: constexpr constructor does not have empty body
   }
   ^
In file included from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/core/Device.h:5:0,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:3,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/cuda/CUDAContext.h:14,
                 from src/structural_loss.cpp:1:
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/core/DispatchKeySet.h: In member function ‘bool c10::DispatchKeySet::has(c10::DispatchKey) const’:
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:286:28: error: ‘str’ is not a member of ‘c10’
     C10_THROW_ERROR(Error, ::c10::str(        \
                            ^
ABRIDGED HERE ABRIDGED HERE ABRIDGED HERE ABRIDGED HERE ABRIDGED HERE ABRIDGED HERE ABRIDGED HERE ABRIDGED HERE ABRIDGED HERE ABRIDGED HERE ABRIDGED HERE ABRIDGED HERE ABRIDGED HERE 

In file included from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/Dimname.h:3:0,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/NamedTensor.h:3,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:19,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/cuda/CUDAContext.h:14,
                 from src/structural_loss.cpp:1:
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/interned_strings.h:86:11: note:   ‘c10::aten::str’
   _(aten, str)                       \
           ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/interned_strings.h:502:35: note: in definition of macro ‘DEFINE_SYMBOL’
   namespace ns { constexpr Symbol s(static_cast<unique_t>(_keys::ns##_##s)); }
                                   ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/interned_strings.h:503:1: note: in expansion of macro ‘FORALL_NS_SYMBOLS’
 FORALL_NS_SYMBOLS(DEFINE_SYMBOL)
 ^
In file included from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/ivalue.h:895:0,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/ATen.h:33,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/extension.h:4,
                 from src/structural_loss.cpp:2:
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/ivalue_inl.h: At global scope:
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/ivalue_inl.h:657:19: error: ‘_guarded_unsigned_long’ in namespace ‘c10::detail’ does not name a type
 DEFINE_TO(detail::_guarded_unsigned_long, toInt)
                   ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/ivalue_inl.h:640:8: note: in definition of macro ‘DEFINE_TO’
 inline type IValue::to<type>() && { \
        ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/ivalue_inl.h:657:19: error: ‘_guarded_unsigned_long’ in namespace ‘c10::detail’ does not name a type
 DEFINE_TO(detail::_guarded_unsigned_long, toInt)
                   ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/ivalue_inl.h:644:8: note: in definition of macro ‘DEFINE_TO’
 inline type IValue::to<type>() const & { \
        ^
In file included from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/core/Device.h:5:0,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:3,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/cuda/CUDAContext.h:14,
                 from src/structural_loss.cpp:1:
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/ivalue_inl.h: In member function ‘c10::intrusive_ptr<T> c10::IValue::toCustomClass() &&’:
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:333:9: error: ‘str’ is not a member of ‘c10’
         ::c10::str(__VA_ARGS__),                                      \
         ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:214:80: note: in definition of macro ‘C10_THROW_ERROR’
 row ::c10::err_type({__func__, __FILE__, static_cast<uint32_t>(__LINE__)}, msg)
                                                                            ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:318:3: note: in expansion of macro ‘TORCH_CHECK_WITH_MSG’
   TORCH_CHECK_WITH_MSG(error_t, cond, "", __VA_ARGS__)
   ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:341:32: note: in expansion of macro ‘TORCH_CHECK_WITH’
 #define TORCH_CHECK(cond, ...) TORCH_CHECK_WITH(Error, cond, __VA_ARGS__)
                                ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/ivalue_inl.h:719:3: note: in expansion of macro ‘TORCH_CHECK’
   TORCH_CHECK(obj->slots().size() == 1,
   ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:333:9: note: suggested alternative:
         ::c10::str(__VA_ARGS__),                                      \
         ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:214:80: note: in definition of macro ‘C10_THROW_ERROR’
 row ::c10::err_type({__func__, __FILE__, static_cast<uint32_t>(__LINE__)}, msg)
                                                                            ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:318:3: note: in expansion of macro ‘TORCH_CHECK_WITH_MSG’
   TORCH_CHECK_WITH_MSG(error_t, cond, "", __VA_ARGS__)
   ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:341:32: note: in expansion of macro ‘TORCH_CHECK_WITH’
 #define TORCH_CHECK(cond, ...) TORCH_CHECK_WITH(Error, cond, __VA_ARGS__)
                                ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/ivalue_inl.h:719:3: note: in expansion of macro ‘TORCH_CHECK’
   TORCH_CHECK(obj->slots().size() == 1,
   ^
In file included from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/Dimname.h:3:0,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/NamedTensor.h:3,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:19,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/cuda/CUDAContext.h:14,
                 from src/structural_loss.cpp:1:
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/interned_strings.h:86:11: note:   ‘c10::aten::str’
   _(aten, str)                       \
           ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/interned_strings.h:502:35: note: in definition of macro ‘DEFINE_SYMBOL’
   namespace ns { constexpr Symbol s(static_cast<unique_t>(_keys::ns##_##s)); }
                                   ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/interned_strings.h:503:1: note: in expansion of macro ‘FORALL_NS_SYMBOLS’
 FORALL_NS_SYMBOLS(DEFINE_SYMBOL)
 ^
In file included from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/core/Device.h:5:0,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:3,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/cuda/CUDAContext.h:14,
                 from src/structural_loss.cpp:1:
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/ivalue_inl.h: In member function ‘c10::intrusive_ptr<T> c10::IValue::toCustomClass() const &’:
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:333:9: error: ‘str’ is not a member of ‘c10’
         ::c10::str(__VA_ARGS__),                                      \
         ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:214:80: note: in definition of macro ‘C10_THROW_ERROR’
 row ::c10::err_type({__func__, __FILE__, static_cast<uint32_t>(__LINE__)}, msg)
                                                                            ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:318:3: note: in expansion of macro ‘TORCH_CHECK_WITH_MSG’
   TORCH_CHECK_WITH_MSG(error_t, cond, "", __VA_ARGS__)
   ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:341:32: note: in expansion of macro ‘TORCH_CHECK_WITH’
 #define TORCH_CHECK(cond, ...) TORCH_CHECK_WITH(Error, cond, __VA_ARGS__)
                                ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/ivalue_inl.h:734:3: note: in expansion of macro ‘TORCH_CHECK’
   TORCH_CHECK(obj->slots().size() == 1,
   ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:333:9: note: suggested alternative:
         ::c10::str(__VA_ARGS__),                                      \
         ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:214:80: note: in definition of macro ‘C10_THROW_ERROR’
 row ::c10::err_type({__func__, __FILE__, static_cast<uint32_t>(__LINE__)}, msg)
                                                                            ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:318:3: note: in expansion of macro ‘TORCH_CHECK_WITH_MSG’
   TORCH_CHECK_WITH_MSG(error_t, cond, "", __VA_ARGS__)
   ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/Exception.h:341:32: note: in expansion of macro ‘TORCH_CHECK_WITH’
 #define TORCH_CHECK(cond, ...) TORCH_CHECK_WITH(Error, cond, __VA_ARGS__)
                                ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/ivalue_inl.h:734:3: note: in expansion of macro ‘TORCH_CHECK’
   TORCH_CHECK(obj->slots().size() == 1,
   ^
In file included from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/Dimname.h:3:0,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/NamedTensor.h:3,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:19,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/cuda/CUDAContext.h:14,
                 from src/structural_loss.cpp:1:
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/interned_strings.h:86:11: note:   ‘c10::aten::str’
   _(aten, str)                       \
           ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/interned_strings.h:502:35: note: in definition of macro ‘DEFINE_SYMBOL’
   namespace ns { constexpr Symbol s(static_cast<unique_t>(_keys::ns##_##s)); }
                                   ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/interned_strings.h:503:1: note: in expansion of macro ‘FORALL_NS_SYMBOLS’
 FORALL_NS_SYMBOLS(DEFINE_SYMBOL)
 ^
In file included from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/ivalue.h:895:0,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/ATen.h:33,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/extension.h:4,
                 from src/structural_loss.cpp:2:
/hom/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:1204:17: note:   candidate expects 4 arguments, 1 provided
In file included from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3:0,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:12,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/extension.h:4,
                 from src/structural_loss.cpp:2:
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:69:56: error: no matching function for call to ‘at::Tensor::to(const c10::Device&) const’
       auto data = device && tensor.device() != *device ?
                                                        ^
In file included from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/cuda/CUDAContext.h:14,
                 from src/structural_loss.cpp:1:
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:953:10: note: candidate: at::Tensor at::Tensor::to(const c10::TensorOptions&, bool, bool, c10::optional<c10::MemoryFormat>) const
   Tensor to(const TensorOptions & options={}, bool non_blocking=false, bool cop
          ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:953:10: note:   no known conversion for argument 1 from ‘const c10::Device’ to ‘const c10::TensorOptions&’
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:954:10: note: candidate: at::Tensor at::Tensor::to(c10::Device, c10::ScalarType, bool, bool, c10::optional<c10::MemoryFormat>) const
   Tensor to(Device device, ScalarType dtype, bool non_blocking=false, bool copy
          ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:954:10: note:   candidate expects 5 arguments, 1 provided
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:955:10: note: candidate: at::Tensor at::Tensor::to(c10::ScalarType, bool, bool, c10::optional<c10::MemoryFormat>) const
   Tensor to(ScalarType dtype, bool non_blocking=false, bool copy=false, c10::op
          ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:955:10: note:   no known conversion for argument 1 from ‘const c10::Device’ to ‘c10::ScalarType’
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:956:10: note: candidate: at::Tensor at::Tensor::to(const at::Tensor&, bool, bool, c10::optional<c10::MemoryFormat>) const
   Tensor to(const Tensor & other, bool non_blocking=false, bool copy=false, c10
          ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:956:10: note:   no known conversion for argument 1 from ‘const c10::Device’ to ‘const at::Tensor&’
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:1201:17: note: candidate: at::Tensor at::Tensor::to(caffe2::TypeMeta, bool, bool) const
   inline Tensor to(caffe2::TypeMeta type_meta, bool non_blocking=false, bool co
                 ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:1201:17: note:   no known conversion for argument 1 from ‘const c10::Device’ to ‘caffe2::TypeMeta’
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:1204:17: note: candidate: at::Tensor at::Tensor::to(c10::Device, caffe2::TypeMeta, bool, bool) const
   inline Tensor to(Device device, caffe2::TypeMeta type_meta, bool non_blocking
                 ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:1204:17: note:   candidate expects 4 arguments, 1 provided
In file included from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/core/ScalarType.h:7:0,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/core/Scalar.h:10,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:7,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/cuda/CUDAContext.h:14,
                 from src/structural_loss.cpp:1:
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/Optional.h: In instantiation of ‘c10::optional<T>& c10::optional<T>::operator=(c10::optional<T>&&) [with T = torch::ExpandingArray<3ul>]’:
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/nn/options/pooling.h:428:8:   required from ‘void torch::nn::Cloneable<Derived>::clone_(torch::nn::Module&, const c10::optional<c10::Device>&) [with Derived = torch::nn::FractionalMaxPool3dImpl]’
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:48:17:   required from here
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/Optional.h:402:23: error: passing ‘const torch::ExpandingArray<3ul>’ as ‘this’ argument discards qualifiers [-fpermissive]
       contained_val() = std::move(*rhs);
                       ^
In file included from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/nn/options/conv.h:6:0,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/nn/functional/conv.h:3,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/nn/functional.h:4,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:4,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:12,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/extension.h:4,
                 from src/structural_loss.cpp:2:
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/expanding_array.h:23:7: note:   in call to ‘torch::ExpandingArray<3ul>& torch::ExpandingArray<3ul>::operator=(const torch::ExpandingArray<3ul>&)’
 class ExpandingArray {
       ^
In file included from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/core/ScalarType.h:7:0,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/core/Scalar.h:10,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:7,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/cuda/CUDAContext.h:14,
                 from src/structural_loss.cpp:1:
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/Optional.h: In instantiation of ‘c10::optional<T>& c10::optional<T>::operator=(c10::optional<T>&&) [with T = torch::ExpandingArray<3ul, double>]’:
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/nn/options/pooling.h:428:8:   required from ‘void torch::nn::Cloneable<Derived>::clone_(torch::nn::Module&, const c10::optional<c10::Device>&) [with Derived = torch::nn::FractionalMaxPool3dImpl]’
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:48:17:   required from here
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/Optional.h:402:23: error: passing ‘const torch::ExpandingArray<3ul, double>’ as ‘this’ argument discards qualifiers [-fpermissive]
       contained_val() = std::move(*rhs);
                       ^
In file included from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/nn/options/conv.h:6:0,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/nn/functional/conv.h:3,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/nn/functional.h:4,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:4,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:12,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/extension.h:4,
                 from src/structural_loss.cpp:2:
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/expanding_array.h:23:7: note:   in call to ‘torch::ExpandingArray<3ul, double>& torch::ExpandingArray<3ul, double>::operator=(const torch::ExpandingArray<3ul, double>&)’
 class ExpandingArray {
       ^
In file included from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/core/ScalarType.h:7:0,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/core/Scalar.h:10,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:7,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/cuda/CUDAContext.h:14,
                 from src/structural_loss.cpp:1:
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/Optional.h: In instantiation of ‘c10::optional<T>& c10::optional<T>::operator=(c10::optional<T>&&) [with T = torch::ExpandingArray<2ul>]’:
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/nn/options/pooling.h:428:8:   required from ‘void torch::nn::Cloneable<Derived>::clone_(torch::nn::Module&, const c10::optional<c10::Device>&) [with Derived = torch::nn::FractionalMaxPool2dImpl]’
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:48:17:   required from here
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/Optional.h:402:23: error: passing ‘const torch::ExpandingArray<2ul>’ as ‘this’ argument discards qualifiers [-fpermissive]
       contained_val() = std::move(*rhs);
                       ^
In file included from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/nn/options/conv.h:6:0,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/nn/functional/conv.h:3,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/nn/functional.h:4,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:4,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:12,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/extension.h:4,
                 from src/structural_loss.cpp:2:
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/expanding_array.h:23:7: note:   in call to ‘torch::ExpandingArray<2ul>& torch::ExpandingArray<2ul>::operator=(const torch::ExpandingArray<2ul>&)’
 class ExpandingArray {
       ^
In file included from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/core/ScalarType.h:7:0,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/core/Scalar.h:10,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:7,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/cuda/CUDAContext.h:14,
                 from src/structural_loss.cpp:1:
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/Optional.h: In instantiation of ‘c10::optional<T>& c10::optional<T>::operator=(c10::optional<T>&&) [with T = torch::ExpandingArray<2ul, double>]’:
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/nn/options/pooling.h:428:8:   required from ‘void torch::nn::Cloneable<Derived>::clone_(torch::nn::Module&, const c10::optional<c10::Device>&) [with Derived = torch::nn::FractionalMaxPool2dImpl]’
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/optim/sgd.h:48:17:   required from here
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/util/Optional.h:402:23: error: passing ‘const torch::ExpandingArray<2ul, double>’ as ‘this’ argument discards qualifiers [-fpermissive]
       contained_val() = std::move(*rhs);
                       ^
In file included from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/nn/options/conv.h:6:0,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/nn/functional/conv.h:3,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/nn/functional.h:4,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:4,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:12,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/extension.h:4,
                 from src/structural_loss.cpp:2:
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/expanding_array.h:23:7: note:   in call to ‘torch::ExpandingArray<2ul, double>& torch::ExpandingArray<2ul, double>::operator=(const torch::ExpandingArray<2ul, double>&)’
 class ExpandingArray {
       ^
In file included from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/core/Scalar.h:10:0,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:7,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/cuda/CUDAContext.h:14,
                 from src/structural_loss.cpp:1:
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/core/ScalarType.h: In function ‘caffe2::TypeMeta c10::scalarTypeToTypeMeta(c10::ScalarType)’:
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/core/ScalarType.h:179:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/core/ScalarType.h: In function ‘c10::ScalarType c10::typeMetaToScalarType(caffe2::TypeMeta)’:
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/core/ScalarType.h:201:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
In file included from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/jit/api/module.h:13:0,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/serialize/input-archive.h:7,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/serialize/archive.h:3,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/samplers/serialize.h:4,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/samplers.h:8,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:6,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets.h:4,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:4,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/extension.h:4,
                 from src/structural_loss.cpp:2:
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/ordered_dict.h: In member function ‘Value& torch::OrderedDict<Key, Value>::operator[](const Key&) [with Key = std::basic_string<char>; Value = std::shared_ptr<torch::nn::Module>]’:
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/ordered_dict.h:350:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
In file included from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/List_inl.h:4:0,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/List.h:472,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/ivalue_inl.h:13,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/ivalue.h:895,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/ATen.h:33,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/torch/extension.h:4,
                 from src/structural_loss.cpp:2:
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/jit_type.h: In static member function ‘static c10::DictTypePtr c10::DictType::create(c10::TypePtr, c10::TypePtr)’:
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/jit_type.h:917:3: warning: control reaches end of non-void function [-Wreturn-type]
   }
   ^
In file included from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/core/Layout.h:3:0,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:4,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/cuda/CUDAContext.h:14,
                 from src/structural_loss.cpp:1:
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/core/Backend.h: In function ‘c10::Backend c10::dispatchKeyToBackend(c10::DispatchKey)’:
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/core/Backend.h:127:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/core/Backend.h: In function ‘c10::DeviceType c10::backendToDeviceType(c10::Backend)’:
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/core/Backend.h:196:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
In file included from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:5:0,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
                 from /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/ATen/cuda/CUDAContext.h:14,
                 from src/structural_loss.cpp:1:
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/core/MemoryFormat.h: In function ‘std::vector<long int> c10::get_channels_last_strides_2d(c10::IntArrayRef)’:
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/core/MemoryFormat.h:73:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/core/MemoryFormat.h: In function ‘std::vector<long int> c10::get_channels_last_strides_3d(c10::IntArrayRef)’:
/home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages/torch/include/c10/core/MemoryFormat.h:94:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
Makefile:83: recipe for target 'objs/structural_loss.o' failed
make: *** [objs/structural_loss.o] Error 1
Cloning into 'torchdiffeq'...
remote: Enumerating objects: 300, done.
remote: Counting objects: 100% (300/300), done.
remote: Compressing objects: 100% (138/138), done.
remote: Total 1004 (delta 175), reused 275 (delta 162), pack-reused 704
Receiving objects: 100% (1004/1004), 8.22 MiB | 0 bytes/s, done.
Resolving deltas: 100% (601/601), done.
Checking connectivity... done.
Obtaining file:///home/user1/ResearchCode/PointFlow/torchdiffeq
Requirement already satisfied: torch>=1.3.0 in /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages (from torchdiffeq==0.1.1) (1.7.1)
Requirement already satisfied: typing_extensions in /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages (from torch>=1.3.0->torchdiffeq==0.1.1) (3.7.4.3)
Requirement already satisfied: numpy in /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages (from torch>=1.3.0->torchdiffeq==0.1.1) (1.19.2)
Requirement already satisfied: dataclasses in /home/user1/anaconda3/envs/PointFlow/lib/python3.6/site-packages (from torch>=1.3.0->torchdiffeq==0.1.1) (0.7)
Installing collected packages: torchdiffeq
  Running setup.py develop for torchdiffeq
Successfully installed torchdiffeq
aespielberg commented 3 years ago

Ah, I see that only CUDA 10.0 is supported. Sorry about that; this seems to work.

JosieHong commented 2 years ago

Hi, I met the same problem, but I can not downgrade the CUDA. Can we install it on CUDA 11.4?