Traceback (most recent call last):


 "/usr/local/lib/python3.6/dist-packages/pudb/__init__.py", line 153, in runscript

dbg._runscript(mainpyfile)


 "/usr/local/lib/python3.6/dist-packages/pudb/debugger.py", line 468, in _runscript

self.run(statement)


 "/usr/lib/python3.6/bdb.py", line 434, in run

exec(cmd, globals, locals)


 "<string>", line 1, in <module>


 "dsc_demo.py", line 18, in <module>

from models.psp import pSp


 "../models/psp.py", line 9, in <module>

from models.encoders import psp_encoders


 "../models/encoders/psp_encoders.py", line 8, in <module>

from models.stylegan2.model import EqualLinear


 "../models/stylegan2/model.py", line 7, in <module>

from models.stylegan2.op import FusedLeakyReLU, fused_leaky_relu, upfirdn2d


 "../models/stylegan2/op/__init__.py", line 1, in <module>

from .fused_act import FusedLeakyReLU, fused_leaky_relu


 "../models/stylegan2/op/fused_act.py", line 13, in <module>

os.path.join(module_path, 'fused_bias_act_kernel.cu'),


 "/home/dongshichao/.local/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 661, in load

is_python_module)


 "/home/dongshichao/.local/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 830, in _jit_compile

with_cuda=with_cuda)


 "/home/dongshichao/.local/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 883, in _write_ninja_file_and_build

_build_extension_module(name, build_directory, verbose)


 "/home/dongshichao/.local/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1043, in _build_extension_module

raise RuntimeError(message)
RuntimeError: Error building extension 'fused': [1/3] :/data/cuda/cuda-10.1/cuda/:/data/cuda/cuda-10.1/cuda/bin/nvcc -DTORCH_EXTENSION_NAME=fused -DTORCH_API_INCLUDE_EXTENSION_H -isystem /home/dongshichao/.local/lib/python3.6/site-packages/torch/include -isystem /home/dongshichao/.local/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -isystem /home/dongshichao/.local/lib/python3.6/site-packages/torch/include/TH -isystem /home/dongshichao/.local/lib/python3.6/site-packages/torch/include/THC -isystem :/data/cuda/cuda-10.1/cuda/:/data/cuda/cuda-10.1/cuda/include -isystem /usr/include/python3.6m -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_75,code=sm_75 --compiler-options '-fPIC' -std=c++11 -c /data/jupyter/pixel2style2pixel/models/stylegan2/op/fused_bias_act_kernel.cu -o fused_bias_act_kernel.cuda.o

Traceback (most recent call last):


 "tools/train.py", line 27, in <module>

import models


 "/home/workspace/python/HRNet-Semantic-Segmentation/tools/../lib/models/__init__.py", line 11, in <module>

import models.seg_hrnet


 "/home/workspace/python/HRNet-Semantic-Segmentation/tools/../lib/models/seg_hrnet.py", line 22, in <module>

from .sync_bn.inplace_abn.bn import InPlaceABNSync


 "/home/workspace/python/HRNet-Semantic-Segmentation/tools/../lib/models/sync_bn/__init__.py", line 1, in <module>

from .inplace_abn import bn


 "/home/workspace/python/HRNet-Semantic-Segmentation/tools/../lib/models/sync_bn/inplace_abn/__init__.py", line 1, in <module>

from .bn import ABN, InPlaceABN, InPlaceABNSync


 "/home/workspace/python/HRNet-Semantic-Segmentation/tools/../lib/models/sync_bn/inplace_abn/bn.py", line 14, in <module>

from functions import *


 "/home/workspace/python/HRNet-Semantic-Segmentation/lib/models/sync_bn/inplace_abn/functions.py", line 16, in <module>

extra_cuda_cflags=["--expt-extended-lambda"])


 "/home/anaconda3/envs/develop/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 644, in load

is_python_module)


 "/home/anaconda3/envs/develop/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 813, in _jit_compile

with_cuda=with_cuda)


 "/home/anaconda3/envs/develop/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 866, in _write_ninja_file_and_build

_build_extension_module(name, build_directory, verbose)


 "/home/anaconda3/envs/develop/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 962, in _build_extension_module

raise RuntimeError(message)
RuntimeError: Error building extension 'inplace_abn': b'[1/3] c++ -MMD -MF inplace_abn_cpu.o.d -DTORCH_EXTENSION_NAME=inplace_abn -DTORCH_API_INCLUDE_EXTENSION_H -isystem /home/anaconda3/envs/develop/lib/python3.6/site-packages/torch/include -isystem /home/anaconda3/envs/develop/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -isystem /home/anaconda3/envs/develop/lib/python3.6/site-packages/torch/include/TH -isystem /home/anaconda3/envs/develop/lib/python3.6/site-packages/torch/include/THC -isystem /usr/local/cuda/include -isystem /home/anaconda3/envs/develop/include/python3.6m -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++11 -O3 -c /home/workspace/python/HRNet-Semantic-Segmentation/lib/models/sync_bn/inplace_abn/src/inplace_abn_cpu.cpp -o inplace_abn_cpu.o\nFAILED: inplace_abn_cpu.o \nc++ -MMD -MF inplace_abn_cpu.o.d -DTORCH_EXTENSION_NAME=inplace_abn -DTORCH_API_INCLUDE_EXTENSION_H -isystem /home/anaconda3/envs/develop/lib/python3.6/site-packages/torch/include -isystem /home/anaconda3/envs/develop/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -isystem /home/anaconda3/envs/develop/lib/python3.6/site-packages/torch/include/TH -isystem /home/anaconda3/envs/develop/lib/python3.6/site-packages/torch/include/THC -isystem /usr/local/cuda/include -isystem /home/anaconda3/envs/develop/include/python3.6m -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++11 -O3 -c /home/workspace/python/HRNet-Semantic-Segmentation/lib/models/sync_bn/inplace_abn/src/inplace_abn_cpu.cpp -o inplace_abn_cpu.o\n/home/workspace/python/HRNet-Semantic-Segmentation/lib/models/sync_bn/inplace_abn/src/inplace_abn_cpu.cpp: In function \'std::vector<at::Tensor> backward_cpu(at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, bool, float)\':\n/home/workspace/python/HRNet-Semantic-Segmentation/lib/models/sync_bn/inplace_abn/src/inplace_abn_cpu.cpp:82:34: error: could not convert \'z.at::Tensor::type()\' from \'at::DeprecatedTypeProperties\' to \'c10::IntArrayRef {aka c10::ArrayRef<long int>}\'\n
auto dweight = at::empty(z.type(), {0});\n
~~~~~~^~\n/home/workspace/python/HRNet-Semantic-Segmentation/lib/models/sync_bn/inplace_abn/src/inplace_abn_cpu.cpp:83:32: error: could not convert \'z.at::Tensor::type()\' from \'at::DeprecatedTypeProperties\' to \'c10::IntArrayRef {aka c10::ArrayRef<long int>}\'\n
auto dbias = at::empty(z.type(), {0});\n
~~~~~~^~\n/home/workspace/python/HRNet-Semantic-Segmentation/lib/models/sync_bn/inplace_abn/src/inplace_abn_cpu.cpp:89:29: error: could not convert \'{dx, dweight, dbias}\' from \'<brace-enclosed initializer list>\' to \'std::vector<at::Tensor>\'\n
return {dx, dweight, dbias};\n
^\n[2/3] /usr/local/cuda/bin/nvcc -DTORCH_EXTENSION_NAME=inplace_abn -DTORCH_API_INCLUDE_EXTENSION_H -isystem /home/anaconda3/envs/develop/lib/python3.6/site-packages/torch/include -isystem /home/anaconda3/envs/develop/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -isystem /home/anaconda3/envs/develop/lib/python3.6/site-packages/torch/include/TH -isystem /home/anaconda3/envs/develop/lib/python3.6/site-packages/torch/include/THC -isystem /usr/local/cuda/include -isystem /home/anaconda3/envs/develop/include/python3.6m -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --compiler-options \'-fPIC\' --expt-extended-lambda -std=c++11 -c /home/workspace/python/HRNet-Semantic-Segmentation/lib/models/sync_bn/inplace_abn/src/inplace_abn_cuda.cu -o inplace_abn_cuda.cuda.o\nFAILED: inplace_abn_cuda.cuda.o \n/usr/local/cuda/bin/nvcc -DTORCH_EXTENSION_NAME=inplace_abn -DTORCH_API_INCLUDE_EXTENSION_H -isystem /home/anaconda3/envs/develop/lib/python3.6/site-packages/torch/include -isystem /home/anaconda3/envs/develop/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -isystem /home/anaconda3/envs/develop/lib/python3.6/site-packages/torch/include/TH -isystem /home/anaconda3/envs/develop/lib/python3.6/site-packages/torch/include/THC -isystem /usr/local/cuda/include -isystem /home/anaconda3/envs/develop/include/python3.6m -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --compiler-options \'-fPIC\' --expt-extended-lambda -std=c++11 -c /home/workspace/python/HRNet-Semantic-Segmentation/lib/models/sync_bn/inplace_abn/src/inplace_abn_cuda.cu -o inplace_abn_cuda.cuda.o\n/home/workspace/python/HRNet-Semantic-Segmentation/lib/models/sync_bn/inplace_abn/src/inplace_abn_cuda.cu(99): error: no suitable user-defined conversion from "at::DeprecatedTypeProperties" to "c10::IntArrayRef" exists\n\n/home/workspace/python/HRNet-Semantic-Segmentation/lib/models/sync_bn/inplace_abn/src/inplace_abn_cuda.cu(99): error: no instance of constructor "c10::TensorOptions::TensorOptions" matches the argument list\n
argument types are: (int64_t)\n\n/home/workspace/python/HRNet-Semantic-Segmentation/lib/models/sync_bn/inplace_abn/src/inplace_abn_cuda.cu(100): error: no suitable user-defined conversion from "at::DeprecatedTypeProperties" to "c10::IntArrayRef" exists\n\n/home/workspace/python/HRNet-Semantic-Segmentation/lib/models/sync_bn/inplace_abn/src/inplace_abn_cuda.cu(100): error: no instance of constructor "c10::TensorOptions::TensorOptions" matches the argument list\n
argument types are: (int64_t)\n\n/home/workspace/python/HRNet-Semantic-Segmentation/lib/models/sync_bn/inplace_abn/src/inplace_abn_cuda.cu(202): error: no suitable user-defined conversion from "at::DeprecatedTypeProperties" to "c10::IntArrayRef" exists\n\n/home/workspace/python/HRNet-Semantic-Segmentation/lib/models/sync_bn/inplace_abn/src/inplace_abn_cuda.cu(202): error: no instance of constructor "c10::TensorOptions::TensorOptions" matches the argument list\n
argument types are: (int64_t)\n\n/home/workspace/python/HRNet-Semantic-Segmentation/lib/models/sync_bn/inplace_abn/src/inplace_abn_cuda.cu(203): error: no suitable user-defined conversion from "at::DeprecatedTypeProperties" to "c10::IntArrayRef" exists\n\n/home/workspace/python/HRNet-Semantic-Segmentation/lib/models/sync_bn/inplace_abn/src/inplace_abn_cuda.cu(203): error: no instance of constructor "c10::TensorOptions::TensorOptions" matches the argument list\n
argument types are: (int64_t)\n\n8 errors detected in the compilation of "/tmp/tmpxft_00000952_00000000-6_inplace_abn_cuda.cpp1.ii".\nninja: build stopped: subcommand failed.\n'