Open wzp2019201645 opened 3 years ago
You can recompile the code according to your machine.
You can recompile the code according to your machine.
Yes, I have recompiled the code to install the DCNv2 module, but it still failed. I runned the code in win10, python3.6, Pytorch1.7.1, cuda10.2, TITAN Xp. I supposed the reason is because the Pytorch version is incompatible. So, could you tell me some methods to modify the coda to satisfy the Pytorch version. thx.
Could you please post the result of executing the code ?
The following result happened after I run the code 'python setup.py develop'. I have no idea to solve it. Could you please analyse the reason? thx.
(denoise_env) E:\WangZhongpeng\adversarial_defence\SADNet-master\dcn>python setup.py develop
running develop
running egg_info
writing deform_conv.egg-info\PKG-INFO
writing dependency_links to deform_conv.egg-info\dependency_links.txt
writing top-level names to deform_conv.egg-info\top_level.txt
reading manifest file 'deform_conv.egg-info\SOURCES.txt'
writing manifest file 'deform_conv.egg-info\SOURCES.txt'
running build_ext
D:\Anaconda3\envs\denoise_env\lib\site-packages\torch\utils\cpp_extension.py:274: UserWarning: Error checking compiler version for cl: [WinError 2] 系统找不到指定的文件。
warnings.warn('Error checking compiler version for {}: {}'.format(compiler, error))
building 'deform_conv_cuda' extension
Emitting ninja build file E:\WangZhongpeng\adversarial_defence\SADNet-master\dcn\build\temp.win-amd64-3.6\Release\build.ninja...
Compiling objects...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
[1/2] cl /showIncludes /nologo /Ox /W3 /GL /DNDEBUG /MD /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /EHsc -ID:\Anaconda3\envs\denoise_env\lib\site-packages\torch\include -ID:\Anaconda3\envs\denoise_env\lib\site-packages\torch\include\torch\csrc\api\include -ID:\Anaconda3\envs\denoise_env\lib\site-packages\torch\include\TH -ID:\Anaconda3\envs\denoise_env\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\include" -ID:\Anaconda3\envs\denoise_env\include -ID:\Anaconda3\envs\denoise_env\include "-ID:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE" "-ID:\vs2015\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\shared" "-IC:\Program Files (x86)\Windows Kits\8.1\include\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\winrt" -c E:\WangZhongpeng\adversarial_defence\SADNet-master\dcn\src\deform_conv_cuda.cpp /FoE:\WangZhongpeng\adversarial_defence\SADNet-master\dcn\build\temp.win-amd64-3.6\Release\src/deform_conv_cuda.obj -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=deform_conv_cuda -D_GLIBCXX_USE_CXX11_ABI=0 /std:c++14
FAILED: E:/WangZhongpeng/adversarial_defence/SADNet-master/dcn/build/temp.win-amd64-3.6/Release/src/deform_conv_cuda.obj
cl /showIncludes /nologo /Ox /W3 /GL /DNDEBUG /MD /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /EHsc -ID:\Anaconda3\envs\denoise_env\lib\site-packages\torch\include -ID:\Anaconda3\envs\denoise_env\lib\site-packages\torch\include\torch\csrc\api\include -ID:\Anaconda3\envs\denoise_env\lib\site-packages\torch\include\TH -ID:\Anaconda3\envs\denoise_env\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\include" -ID:\Anaconda3\envs\denoise_env\include -ID:\Anaconda3\envs\denoise_env\include "-ID:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE" "-ID:\vs2015\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\shared" "-IC:\Program Files (x86)\Windows Kits\8.1\include\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\winrt" -c E:\WangZhongpeng\adversarial_defence\SADNet-master\dcn\src\deform_conv_cuda.cpp /FoE:\WangZhongpeng\adversarial_defence\SADNet-master\dcn\build\temp.win-amd64-3.6\Release\src/deform_conv_cuda.obj -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=deform_conv_cuda -D_GLIBCXX_USE_CXX11_ABI=0 /std:c++14
注意: 包含文件: D:\Anaconda3\envs\denoise_env\lib\site-packages\torch\include\torch/extension.h
注意: 包含文件: D:\Anaconda3\envs\denoise_env\lib\site-packages\torch\include\torch\csrc\api\include\torch/all.h
注意: 包含文件: D:\Anaconda3\envs\denoise_env\lib\site-packages\torch\include\torch\csrc\api\include\torch/cuda.h
注意: 包含文件: D:\Anaconda3\envs\denoise_env\lib\site-packages\torch\include\torch/csrc/WindowsTorchApiMacro.h
注意: 包含文件: D:\Anaconda3\envs\denoise_env\lib\site-packages\torch\include\c10/macros/Export.h
注意: 包含文件: D:\Anaconda3\envs\denoise_env\lib\site-packages\torch\include\c10/macros/cmake_macros.h
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\cstdint
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\yvals.h
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\xkeycheck.h
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\crtdefs.h
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\vcruntime.h
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\sal.h
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\ConcurrencySal.h
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\vadefs.h
注意: 包含文件: C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\corecrt.h
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\vcruntime.h
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\use_ansi.h
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\stdint.h
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\vcruntime.h
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\cstddef
注意: 包含文件: C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\stddef.h
注意: 包含文件: D:\Anaconda3\envs\denoise_env\lib\site-packages\torch\include\torch\csrc\api\include\torch/data.h
注意: 包含文件: D:\Anaconda3\envs\denoise_env\lib\site-packages\torch\include\torch\csrc\api\include\torch/data/dataloader.h
注意: 包含文件: D:\Anaconda3\envs\denoise_env\lib\site-packages\torch\include\torch\csrc\api\include\torch/data/dataloader/stateful.h
注意: 包含文件: D:\Anaconda3\envs\denoise_env\lib\site-packages\torch\include\torch\csrc\api\include\torch/data/dataloader/base.h
注意: 包含文件: D:\Anaconda3\envs\denoise_env\lib\site-packages\torch\include\torch\csrc\api\include\torch/data/dataloader_options.h
注意: 包含文件: D:\Anaconda3\envs\denoise_env\lib\site-packages\torch\include\torch\csrc\api\include\torch/arg.h
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\utility
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\xstddef
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\cstdlib
注意: 包含文件: C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\stdlib.h
注意: 包含文件: C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\corecrt_malloc.h
注意: 包含文件: C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\corecrt_search.h
注意: 包含文件: C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\corecrt_wstdlib.h
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\limits.h
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\vcruntime.h
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\initializer_list
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\xtr1common
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\iosfwd
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\cstdio
注意: 包含文件: C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\stdio.h
注意: 包含文件: C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\corecrt_wstdio.h
注意: 包含文件: C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\corecrt_stdio_config.h
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\cstring
注意: 包含文件: C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\string.h
注意: 包含文件: C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\corecrt_memory.h
注意: 包含文件: C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\corecrt_memcpy_s.h
注意: 包含文件: C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\errno.h
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\vcruntime_string.h
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\vcruntime.h
注意: 包含文件: C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\corecrt_wstring.h
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\cwchar
注意: 包含文件: C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\wchar.h
注意: 包含文件: C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\corecrt_wconio.h
注意: 包含文件: C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\corecrt_wctype.h
注意: 包含文件: C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\corecrt_wdirect.h
注意: 包含文件: C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\corecrt_wio.h
注意: 包含文件: C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\corecrt_share.h
注意: 包含文件: C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\corecrt_wprocess.h
注意: 包含文件: C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\corecrt_wtime.h
注意: 包含文件: C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\sys/stat.h
注意: 包含文件: C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\sys/types.h
注意: 包含文件: C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\crtdbg.h
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\vcruntime_new_debug.h
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\vcruntime_new.h
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\vcruntime.h
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\type_traits
注意: 包含文件: D:\Anaconda3\envs\denoise_env\lib\site-packages\torch\include\torch\csrc\api\include\torch/types.h
注意: 包含文件: D:\Anaconda3\envs\denoise_env\lib\site-packages\torch\include\ATen/ATen.h
注意: 包含文件: D:\Anaconda3\envs\denoise_env\lib\site-packages\torch\include\c10/core/Allocator.h
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\memory
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\xmemory
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\xmemory0
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\limits
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\ymath.h
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\cfloat
注意: 包含文件: C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\float.h
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\climits
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\cmath
注意: 包含文件: C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\math.h
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\xtgmath.h
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\new
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\exception
注意: 包含文件: C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\malloc.h
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\vcruntime_exception.h
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\eh.h
注意: 包含文件: C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\corecrt_terminate.h
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\xutility
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\xatomic0.h
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\intrin.h
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\vcruntime.h
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\setjmp.h
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\vcruntime.h
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\immintrin.h
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\wmmintrin.h
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\nmmintrin.h
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\smmintrin.h
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\tmmintrin.h
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\pmmintrin.h
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\emmintrin.h
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\xmmintrin.h
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\mmintrin.h
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\ammintrin.h
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\typeinfo
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\vcruntime_typeinfo.h
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\vcruntime.h
注意: 包含文件: D:\Anaconda3\envs\denoise_env\lib\site-packages\torch\include\c10/core/Device.h
注意: 包含文件: D:\Anaconda3\envs\denoise_env\lib\site-packages\torch\include\c10/core/DeviceType.h
注意: 包含文件: D:\Anaconda3\envs\denoise_env\lib\site-packages\torch\include\c10/macros/Macros.h
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\sstream
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\string
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\istream
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\ostream
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\ios
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\xlocnum
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\streambuf
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\xiosbase
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\xlocale
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\stdexcept
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\xstring
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\xlocinfo
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\xlocinfo.h
注意: 包含文件: C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\ctype.h
注意: 包含文件: C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\locale.h
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\xfacet
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\system_error
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\cerrno
注意: 包含文件: C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\share.h
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\functional
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\xfunctional
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\tuple
注意: 包含文件: D:\Anaconda3\envs\denoise_env\lib\site-packages\torch\include\c10/util/Exception.h
注意: 包含文件: D:\Anaconda3\envs\denoise_env\lib\site-packages\torch\include\c10/util/StringUtil.h
注意: 包含文件: D:\Anaconda3\envs\denoise_env\lib\site-packages\torch\include\c10/util/string_utils.h
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\vector
注意: 包含文件: D:\Anaconda3\envs\denoise_env\lib\site-packages\torch\include\c10/util/Deprecated.h
注意: 包含文件: D:\Anaconda3\envs\denoise_env\lib\site-packages\torch\include\c10/util/ThreadLocalDebugInfo.h
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\unordered_map
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\xhash
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\list
注意: 包含文件: D:\Anaconda3\envs\denoise_env\lib\site-packages\torch\include\c10/util/UniqueVoidPtr.h
注意: 包含文件: D:\Anaconda3\envs\denoise_env\lib\site-packages\torch\include\ATen/core/ATenGeneral.h
注意: 包含文件: D:\Anaconda3\envs\denoise_env\lib\site-packages\torch\include\ATen/Context.h
注意: 包含文件: D:\Anaconda3\envs\denoise_env\lib\site-packages\torch\include\ATen/Tensor.h
注意: 包含文件: D:\Anaconda3\envs\denoise_env\lib\site-packages\torch\include\ATen/core/TensorBody.h
注意: 包含文件: D:\Anaconda3\envs\denoise_env\lib\site-packages\torch\include\c10/core/Layout.h
注意: 包含文件: D:\Anaconda3\envs\denoise_env\lib\site-packages\torch\include\c10/core/Backend.h
注意: 包含文件: D:\Anaconda3\envs\denoise_env\lib\site-packages\torch\include\c10/core/DispatchKey.h
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\iostream
注意: 包含文件: D:\Anaconda3\envs\denoise_env\lib\site-packages\torch\include\c10/util/ArrayRef.h
注意: 包含文件: D:\Anaconda3\envs\denoise_env\lib\site-packages\torch\include\c10/util/SmallVector.h
注意: 包含文件: D:\Anaconda3\envs\denoise_env\lib\site-packages\torch\include\c10/util/AlignOf.h
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\algorithm
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\cassert
注意: 包含文件: C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\assert.h
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\iterator
注意: 包含文件: D:\Anaconda3\envs\denoise_env\lib\site-packages\torch\include\c10/util/C++17.h
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\array
注意: 包含文件: D:\Anaconda3\envs\denoise_env\lib\site-packages\torch\include\c10/core/DispatchKeySet.h
注意: 包含文件: D:\Anaconda3\envs\denoise_env\lib\site-packages\torch\include\c10/util/llvmMathExtras.h
注意: 包含文件: D:\vs2015\Microsoft Visual Studio 14.0\VC\INCLUDE\cassert
注意: 包含文件: C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\assert.h
D:\Anaconda3\envs\denoise_env\lib\site-packages\torch\include\c10/core/DispatchKeySet.h(59): error C3250: “
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/core/DispatchKeySet.h(60): error: statement may not appear in a constexpr constructor
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/core/DispatchKeySet.h(59): error: statement may not appear in a constexpr constructor
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/core/DispatchKeySet.h(191): error: expression must have a constant value
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/core/DispatchKeySet.h(191): note: this call cannot be evaluated because the target function function "c10::DispatchKeySet::DispatchKeySet(std::initializer_list
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/complex.h(152): warning: constexpr non-static member function will not be implicitly 'const' in C++14
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/complex.h(158): warning: constexpr non-static member function will not be implicitly 'const' in C++14
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/complex.h(163): warning: constexpr non-static member function will not be implicitly 'const' in C++14
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/complex.h(168): warning: constexpr non-static member function will not be implicitly 'const' in C++14
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/complex.h(174): warning: constexpr non-static member function will not be implicitly 'const' in C++14
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/complex.h(181): warning: constexpr non-static member function will not be implicitly 'const' in C++14
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/complex.h(188): warning: constexpr non-static member function will not be implicitly 'const' in C++14
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/complex.h(195): warning: constexpr non-static member function will not be implicitly 'const' in C++14
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/complex.h(202): warning: constexpr non-static member function will not be implicitly 'const' in C++14
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/complex.h(219): warning: constexpr non-static member function will not be implicitly 'const' in C++14
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/complex.h(233): warning: constexpr non-static member function will not be implicitly 'const' in C++14
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/complex.h(268): warning: constexpr non-static member function will not be implicitly 'const' in C++14
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/complex.h(274): warning: constexpr non-static member function will not be implicitly 'const' in C++14
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/Optional.h(280): warning: constexpr non-static member function will not be implicitly 'const' in C++14
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/Optional.h(283): warning: constexpr non-static member function will not be implicitly 'const' in C++14
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/Optional.h(283): error: cannot overload functions distinguished by return type alone
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/Optional.h(505): warning: constexpr non-static member function will not be implicitly 'const' in C++14
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/reverse_iterator.h(89): warning: constexpr non-static member function will not be implicitly 'const' in C++14
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/reverse_iterator.h(123): warning: constexpr non-static member function will not be implicitly 'const' in C++14
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/reverse_iterator.h(128): warning: constexpr non-static member function will not be implicitly 'const' in C++14
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/reverse_iterator.h(134): warning: constexpr non-static member function will not be implicitly 'const' in C++14
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/reverse_iterator.h(139): warning: constexpr non-static member function will not be implicitly 'const' in C++14
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/reverse_iterator.h(149): warning: constexpr non-static member function will not be implicitly 'const' in C++14
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/reverse_iterator.h(158): warning: constexpr non-static member function will not be implicitly 'const' in C++14
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/string_view.h(54): warning: constexpr non-static member function will not be implicitly 'const' in C++14
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/string_view.h(151): warning: constexpr non-static member function will not be implicitly 'const' in C++14
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/string_view.h(161): warning: constexpr non-static member function will not be implicitly 'const' in C++14
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/string_view.h(170): warning: constexpr non-static member function will not be implicitly 'const' in C++14
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/Array.h(105): warning: constexpr non-static member function will not be implicitly 'const' in C++14
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/Array.h(108): warning: constexpr non-static member function will not be implicitly 'const' in C++14
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/Array.h(112): warning: constexpr non-static member function will not be implicitly 'const' in C++14
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/Array.h(115): error: cannot overload functions distinguished by return type alone
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/Array.h(118): warning: constexpr non-static member function will not be implicitly 'const' in C++14
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/Array.h(121): error: cannot overload functions distinguished by return type alone
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/Array.h(124): warning: constexpr non-static member function will not be implicitly 'const' in C++14
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/Array.h(127): error: cannot overload functions distinguished by return type alone
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/Array.h(130): warning: constexpr non-static member function will not be implicitly 'const' in C++14
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/Array.h(133): error: cannot overload functions distinguished by return type alone
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/Array.h(156): warning: constexpr non-static member function will not be implicitly 'const' in C++14
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/Array.h(159): error: cannot overload functions distinguished by return type alone
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/Array.h(162): warning: constexpr non-static member function will not be implicitly 'const' in C++14
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/Array.h(171): error: cannot overload functions distinguished by return type alone
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/Array.h(181): warning: constexpr non-static member function will not be implicitly 'const' in C++14
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/Array.h(184): error: cannot overload functions distinguished by return type alone
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/Array.h(187): warning: constexpr non-static member function will not be implicitly 'const' in C++14
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/Array.h(190): error: cannot overload functions distinguished by return type alone
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/Array.h(196): warning: constexpr non-static member function will not be implicitly 'const' in C++14
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/Array.h(199): error: cannot overload functions distinguished by return type alone
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\ATen/core/op_registration/hacky_wrapper_for_legacy_signatures.h(48): error: statement may not appear in a constexpr function
detected during instantiation of "__nv_bool c10::impl::detail::has_tensoroptions_arg
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\ATen/core/op_registration/hacky_wrapper_for_legacy_signatures.h(54): error: expression must have a constant value
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\ATen/core/op_registration/hacky_wrapper_for_legacy_signatures.h(54): note: this call cannot be evaluated because the target function function "c10::impl::detail::has_tensoroptions_arg
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\ATen/core/op_registration/hacky_wrapper_for_legacy_signatures.h(48): error: statement may not appear in a constexpr function
detected during instantiation of "__nv_bool c10::impl::detail::has_tensoroptions_arg
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\ATen/core/op_registration/hacky_wrapper_for_legacy_signatures.h(55): error: expression must have a constant value
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\ATen/core/op_registration/hacky_wrapper_for_legacy_signatures.h(55): note: this call cannot be evaluated because the target function function "c10::impl::detail::has_tensoroptions_arg
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\ATen/core/op_registration/hacky_wrapper_for_legacy_signatures.h(48): error: statement may not appear in a constexpr function
detected during instantiation of "__nv_bool c10::impl::detail::has_tensoroptions_arg
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\ATen/core/op_registration/hacky_wrapper_for_legacy_signatures.h(56): error: expression must have a constant value
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/Optional.h(390): error: expression must be a modifiable lvalue
detected during instantiation of "c10::optional
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/Optional.h(473): error: qualifiers dropped in binding reference of type "c10::ScalarType &" to initializer of type "const c10::ScalarType"
detected during instantiation of "T &c10::optional
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/Optional.h(473): error: qualifiers dropped in binding reference of type "caffe2::TypeMeta &" to initializer of type "const caffe2::TypeMeta"
detected during instantiation of "T &c10::optional
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/Optional.h(473): error: qualifiers dropped in binding reference of type "c10::Layout &" to initializer of type "const c10::Layout"
detected during instantiation of "T &c10::optional
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/Optional.h(402): error: no operator "=" matches these operands
operand types are: const c10::Device = c10::Device
detected during instantiation of "c10::optional
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/Optional.h(473): error: qualifiers dropped in binding reference of type "c10::Device &" to initializer of type "const c10::Device"
detected during instantiation of "T &c10::optional
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/Optional.h(488): error: qualifiers dropped in binding reference of type "c10::Device &" to initializer of type "const c10::Device"
detected during instantiation of "T &c10::optional
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/Optional.h(390): error: expression must be a modifiable lvalue
detected during instantiation of "c10::optional
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/Optional.h(473): error: qualifiers dropped in binding reference of type "nv_bool &" to initializer of type "const __nv_bool"
detected during instantiation of "T &c10::optional
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/Optional.h(496): error: qualifiers dropped in binding reference of type "nv_bool &&" to initializer of type "const __nv_bool"
detected during instantiation of "T &&c10::optional
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/Optional.h(473): error: qualifiers dropped in binding reference of type "c10::MemoryFormat &" to initializer of type "const c10::MemoryFormat"
detected during instantiation of "T &c10::optional
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/Optional.h(478): error: qualifiers dropped in binding reference of type "c10::MemoryFormat &&" to initializer of type "const c10::MemoryFormat"
detected during instantiation of "T &&c10::optional
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/Optional.h(414): error: no operator "=" matches these operands
operand types are: const c10::Device = c10::Device
detected during instantiation of "auto c10::optional
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/Optional.h(473): error: qualifiers dropped in binding reference of type "int64_t &" to initializer of type "const int64_t"
detected during instantiation of "T &c10::optional
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/Optional.h(488): error: qualifiers dropped in binding reference of type "int64_t &" to initializer of type "const int64_t"
detected during instantiation of "T &c10::optional
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/Optional.h(473): error: qualifiers dropped in binding reference of type "std::string &" to initializer of type "const std::string"
detected during instantiation of "T &c10::optional
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/Optional.h(473): error: qualifiers dropped in binding reference of type "size_t &" to initializer of type "const size_t"
detected during instantiation of "T &c10::optional
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/Optional.h(414): error: no operator "=" matches these operands
operand types are: const c10::Stride = c10::Stride
detected during instantiation of "auto c10::optional
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/Optional.h(390): error: no operator "=" matches these operands
operand types are: const std::vector<c10::ShapeSymbol, std::allocator
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/Optional.h(473): error: qualifiers dropped in binding reference of type "std::vector<c10::ShapeSymbol, std::allocator
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/Optional.h(402): error: no operator "=" matches these operands
operand types are: const std::vector<c10::ShapeSymbol, std::allocator
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/Optional.h(414): error: no operator "=" matches these operands
operand types are: const std::vector<c10::ShapeSymbol, std::allocator
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/Optional.h(390): error: no operator "=" matches these operands
operand types are: const std::vector<c10::optional
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/Optional.h(473): error: qualifiers dropped in binding reference of type "std::vector<c10::optional
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/Optional.h(402): error: no operator "=" matches these operands
operand types are: const std::vector<c10::optional
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/Optional.h(414): error: no operator "=" matches these operands
operand types are: const std::vector<c10::optional
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/Optional.h(478): error: qualifiers dropped in binding reference of type "std::vector<int64_t, std::allocator
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/Optional.h(414): error: expression must be a modifiable lvalue
detected during instantiation of "auto c10::optional
D:/Anaconda3/envs/denoise_env/lib/site-packages/torch/include\c10/util/Optional.h(473): error: qualifiers dropped in binding reference of type "c10::QualifiedName &" to initializer of type "const c10::QualifiedName"
detected during:
instantiation of "T &c10::optional
48 errors detected in the compilation of "C:/Users/admin/AppData/Local/Temp/tmpxft_00001d00_00000000-10_deform_conv_cuda_kernel.cpp1.ii". deform_conv_cuda_kernel.cu ninja: build stopped: subcommand failed. Traceback (most recent call last): File "D:\Anaconda3\envs\denoise_env\lib\site-packages\torch\utils\cpp_extension.py", line 1522, in _run_ninja_build env=env) File "D:\Anaconda3\envs\denoise_env\lib\subprocess.py", line 438, in run output=stdout, stderr=stderr) subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "setup.py", line 22, in
I tried to run the code in pytorch1.7.0 but found some mistake. So could you tell me how to tackle the version-imcompatible problem? thx.