Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

windows: python setup.py develop出错 #153

Closed
SSTato opened this issue Jan 11, 2022 · 18 comments
Closed

windows: python setup.py develop出错 #153

SSTato opened this issue Jan 11, 2022 · 18 comments

Comments

@SSTato
Copy link

SSTato commented Jan 11, 2022

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2020 NVIDIA Corporation
Built on Tue_Sep_15_19:12:04_Pacific_Daylight_Time_2020
Cuda compilation tools, release 11.1, V11.1.74
Build cuda_11.1.relgpu_drvr455TC455_06.29069683_0

Tue Jan 11 17:00:56 2022
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 457.51 Driver Version: 457.51 CUDA Version: 11.1 |
|-------------------------------+----------------------+----------------------+
| GPU Name TCC/WDDM | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 GeForce RTX 306... WDDM | 00000000:26:00.0 On | N/A |
| 0% 29C P8 9W / 200W | 350MiB / 8192MiB | 4% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 1224 C+G Insufficient Permissions N/A |
| 0 N/A N/A 1472 C+G ...8wekyb3d8bbwe\GameBar.exe N/A |
| 0 N/A N/A 6404 C+G ...nputApp\TextInputHost.exe N/A |
| 0 N/A N/A 6500 C+G ...bbwe\Microsoft.Photos.exe N/A |
| 0 N/A N/A 6688 C+G C:\Windows\explorer.exe N/A |
| 0 N/A N/A 8068 C+G ...5n1h2txyewy\SearchApp.exe N/A |
| 0 N/A N/A 8660 C+G ...ekyb3d8bbwe\YourPhone.exe N/A |
| 0 N/A N/A 10640 C+G ...8wekyb3d8bbwe\Cortana.exe N/A |
| 0 N/A N/A 10784 C+G ...wekyb3d8bbwe\Video.UI.exe N/A |
| 0 N/A N/A 10808 C+G ...y\ShellExperienceHost.exe N/A |
| 0 N/A N/A 11876 C+G Insufficient Permissions N/A |
| 0 N/A N/A 13552 C+G Insufficient Permissions N/A |
| 0 N/A N/A 14676 C+G ...lPanel\SystemSettings.exe N/A |
+-----------------------------------------------------------------------------+

以下是错误信息

(pytorch191) C:\Users\guowei\Desktop\yolov5_obb\utils\nms_rotated>python setup.py develop
running develop
running egg_info
writing nms_rotated_ext.egg-info\PKG-INFO
writing dependency_links to nms_rotated_ext.egg-info\dependency_links.txt
writing top-level names to nms_rotated_ext.egg-info\top_level.txt
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\utils\cpp_extension.py:370: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils ba
ckend.
warnings.warn(msg.format('we could not find ninja.'))
reading manifest file 'nms_rotated_ext.egg-info\SOURCES.txt'
writing manifest file 'nms_rotated_ext.egg-info\SOURCES.txt'
running build_ext
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\utils\cpp_extension.py:305: UserWarning: Error checking compiler version for cl: [WinError 2] 系统找不到指定的文件。
warnings.warn(f'Error checking compiler version for {compiler}: {error}')
building '.nms_rotated_ext' extension
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DWITH_CUDA -ID:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include -ID:\ProgramData\Anaconda3\envs\p
ytorch191\lib\site-packages\torch\include\torch\csrc\api\include -ID:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\TH -ID:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\THC "-IC:\Prog
ram Files\NVIDIA GPU Computing Toolkit\CUDA\v11.1\include" -ID:\ProgramData\Anaconda3\envs\pytorch191\include -ID:\ProgramData\Anaconda3\envs\pytorch191\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC
:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" "-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\wi
nrt" /EHsc /Tpsrc/nms_rotated_cpu.cpp /Fobuild\temp.win-amd64-3.7\Release\src/nms_rotated_cpu.obj /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /EHsc -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=nms_rotated_e
xt -D_GLIBCXX_USE_CXX11_ABI=0
nms_rotated_cpu.cpp
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Array.h(111): warning C4814: 'c10::guts::array<_Tp,_Nm>::fill': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Array.h(232): note: see reference to class template instantiation 'c10::guts::array<_Tp,_Nm>' being compiled
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Array.h(115): warning C4814: 'c10::guts::array<_Tp,_Nm>::swap': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Array.h(120): warning C4814: 'c10::guts::array<_Tp,_Nm>::begin': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Array.h(128): warning C4814: 'c10::guts::array<_Tp,_Nm>::end': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Array.h(136): warning C4814: 'c10::guts::array<_Tp,_Nm>::rbegin': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Array.h(144): warning C4814: 'c10::guts::array<_Tp,_Nm>::rend': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Array.h(182): warning C4814: 'c10::guts::array<_Tp,_Nm>::operator []': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'co
nst'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Array.h(195): warning C4814: 'c10::guts::array<_Tp,_Nm>::at': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Array.h(210): warning C4814: 'c10::guts::array<_Tp,_Nm>::front': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Array.h(218): warning C4814: 'c10::guts::array<_Tp,_Nm>::back': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Array.h(227): warning C4814: 'c10::guts::array<_Tp,_Nm>::data': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/TypeList.h(405): error C2672: 'c10::guts::min': no matching overloaded function found
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/TypeList.h(408): note: see reference to class template instantiation 'c10::guts::typelist::drop_if_nonempty<TypeList,num>' being compiled
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/TypeList.h(405): error C2782: 'const T &c10::guts::min(const T &,const T &)': template parameter 'T' is ambiguous
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/C++17.h(422): note: see declaration of 'c10::guts::min'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/TypeList.h(405): note: could be 'size::value'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/TypeList.h(405): note: or 'std::size_t'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/TypeList.h(405): error C2784: 'const T &c10::guts::min(const T &,const T &)': could not deduce template argument for 'const T &' from 'size:
:value'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/C++17.h(422): note: see declaration of 'c10::guts::min'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/TypeList.h(407): error C2672: 'c10::guts::min': no matching overloaded function found
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/TypeList.h(407): error C2782: 'const T &c10::guts::min(const T &,const T &)': template parameter 'T' is ambiguous
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/C++17.h(422): note: see declaration of 'c10::guts::min'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/TypeList.h(407): note: could be 'size::value'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/TypeList.h(407): note: or 'std::size_t'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/TypeList.h(407): error C2784: 'const T &c10::guts::min(const T &,const T &)': could not deduce template argument for 'const T &' from 'size:
:value'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/C++17.h(422): note: see declaration of 'c10::guts::min'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/DispatchKeySet.h(59): error C3250: '$L0': declaration is not allowed in 'constexpr' function body
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/DispatchKeySet.h(59): error C3249: illegal statement or sub-expression for 'constexpr' function
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/DispatchKeySet.h(59): error C3250: '$L0': declaration is not allowed in 'constexpr' function body
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/DispatchKeySet.h(59): error C3250: '$L0': declaration is not allowed in 'constexpr' function body
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/DispatchKeySet.h(59): note: see usage of '++'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/DispatchKeySet.h(59): error C3250: 'k': declaration is not allowed in 'constexpr' function body
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/DispatchKeySet.h(60): error C3249: illegal statement or sub-expression for 'constexpr' function
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/DispatchKeySet.h(60): note: see usage of '|='
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/DispatchKeySet.h(66): warning C4800: 'uint64_t': forcing value to bool 'true' or 'false' (performance warning)
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/complex.h(177): warning C4814: 'c10::complex::operator =': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/complex.h(299): note: see reference to class template instantiation 'c10::complex' being compiled
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/DispatchKeySet.h(57): note: see reference to class template instantiation 'std::initializer_listc10::DispatchKey' being compiled
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/complex.h(182): warning C4814: 'c10::complex::operator +=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/complex.h(187): warning C4814: 'c10::complex::operator -=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/complex.h(193): warning C4814: 'c10::complex::operator *=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/complex.h(199): warning C4814: 'c10::complex::operator /=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/complex.h(206): warning C4814: 'c10::complex::operator =': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/complex.h(213): warning C4814: 'c10::complex::operator +=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/complex.h(220): warning C4814: 'c10::complex::operator -=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/complex.h(232): warning C4814: 'c10::complex::operator *=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/complex.h(251): warning C4814: 'c10::complex::operator /=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/complex.h(259): warning C4814: 'c10::complex::operator =': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/complex.h(292): warning C4814: 'c10::complex::real': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/complex.h(298): warning C4814: 'c10::complex::imag': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/complex.h(177): warning C4814: 'c10::complex::operator =': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/complex.h(303): note: see reference to class template instantiation 'c10::complex' being compiled
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/complex.h(182): warning C4814: 'c10::complex::operator +=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'

D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/complex.h(187): warning C4814: 'c10::complex::operator -=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'

D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/complex.h(193): warning C4814: 'c10::complex::operator *=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'

D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/complex.h(199): warning C4814: 'c10::complex::operator /=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'

D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/complex.h(206): warning C4814: 'c10::complex::operator =': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/complex.h(213): warning C4814: 'c10::complex::operator +=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'

D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/complex.h(220): warning C4814: 'c10::complex::operator -=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'

D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/complex.h(232): warning C4814: 'c10::complex::operator *=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'

D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/complex.h(251): warning C4814: 'c10::complex::operator /=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'

D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/complex.h(259): warning C4814: 'c10::complex::operator =': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/complex.h(292): warning C4814: 'c10::complex::real': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/complex.h(298): warning C4814: 'c10::complex::imag': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/complex.h(177): warning C4814: 'c10::complex::operator =': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'

D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/complex.h(307): note: see reference to class template instantiation 'c10::complex' being compiled
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/complex.h(182): warning C4814: 'c10::complex::operator +=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const
'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/complex.h(187): warning C4814: 'c10::complex::operator -=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const
'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/complex.h(193): warning C4814: 'c10::complex::operator *=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const
'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/complex.h(199): warning C4814: 'c10::complex::operator /=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const
'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/complex.h(206): warning C4814: 'c10::complex::operator =': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'

D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/complex.h(213): warning C4814: 'c10::complex::operator +=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const
'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/complex.h(220): warning C4814: 'c10::complex::operator -=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const
'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/complex.h(232): warning C4814: 'c10::complex::operator *=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const
'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/complex.h(251): warning C4814: 'c10::complex::operator /=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const
'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/complex.h(259): warning C4814: 'c10::complex::operator =': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'

D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/complex.h(292): warning C4814: 'c10::complex::real': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/complex.h(298): warning C4814: 'c10::complex::imag': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(476): warning C4814: 'c10::optional::contained_val': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'

D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(688): note: see reference to class template instantiation 'c10::optional' being compiled
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(479): warning C4814: 'c10::optional::contained_val': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'

D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(638): warning C4814: 'c10::optional::operator ->': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(647): warning C4814: 'c10::optional::operator *': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(652): warning C4814: 'c10::optional::operator *': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(664): warning C4814: 'c10::optional::value': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(670): warning C4814: 'c10::optional::value': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(682): warning C4814: 'c10::optional::value_or': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/Scalar.h(63): warning C4800: 'const int64_t': forcing value to bool 'true' or 'false' (performance warning)
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/Scalar.h(129): warning C4800: 'const int64_t': forcing value to bool 'true' or 'false' (performance warning)
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/reverse_iterator.h(92): warning C4814: 'c10::reverse_iterator<_Iterator>::operator =': in C++14 'constexpr' will not imply 'const'; consider explicitl
y specifying 'const'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/reverse_iterator.h(176): note: see reference to class template instantiation 'c10::reverse_iterator<_Iterator>' being compiled
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/reverse_iterator.h(125): warning C4814: 'c10::reverse_iterator<_Iterator>::operator ++': in C++14 'constexpr' will not imply 'const'; consider explici
tly specifying 'const'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/reverse_iterator.h(131): warning C4814: 'c10::reverse_iterator<_Iterator>::operator ++': in C++14 'constexpr' will not imply 'const'; consider explici
tly specifying 'const'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/reverse_iterator.h(136): warning C4814: 'c10::reverse_iterator<_Iterator>::operator --': in C++14 'constexpr' will not imply 'const'; consider explici
tly specifying 'const'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/reverse_iterator.h(142): warning C4814: 'c10::reverse_iterator<_Iterator>::operator --': in C++14 'constexpr' will not imply 'const'; consider explici
tly specifying 'const'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/reverse_iterator.h(151): warning C4814: 'c10::reverse_iterator<_Iterator>::operator +=': in C++14 'constexpr' will not imply 'const'; consider explici
tly specifying 'const'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/reverse_iterator.h(160): warning C4814: 'c10::reverse_iterator<_Iterator>::operator -=': in C++14 'constexpr' will not imply 'const'; consider explici
tly specifying 'const'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/string_view.h(59): warning C4814: 'c10::basic_string_view::operator =': in C++14 'constexpr' will not imply 'const'; consider explicitly specif
ying 'const'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/string_view.h(642): note: see reference to class template instantiation 'c10::basic_string_view' being compiled
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/string_view.h(160): warning C4814: 'c10::basic_string_view::remove_prefix': in C++14 'constexpr' will not imply 'const'; consider explicitly sp
ecifying 'const'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/string_view.h(169): warning C4814: 'c10::basic_string_view::remove_suffix': in C++14 'constexpr' will not imply 'const'; consider explicitly sp
ecifying 'const'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/string_view.h(175): warning C4814: 'c10::basic_string_view::swap': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying
'const'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/ConstexprCrc.h(103): error C3250: 'i': declaration is not allowed in 'constexpr' function body
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/ConstexprCrc.h(103): error C3249: illegal statement or sub-expression for 'constexpr' function
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/ConstexprCrc.h(103): note: see usage of '++'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/ConstexprCrc.h(104): error C3249: illegal statement or sub-expression for 'constexpr' function
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/ConstexprCrc.h(105): error C3249: illegal statement or sub-expression for 'constexpr' function
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/string_view.h(59): warning C4814: 'c10::basic_string_view::operator =': in C++14 'constexpr' will not imply 'const'; consider explicitly specify
ing 'const'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/ConstexprCrc.h(123): note: see reference to class template instantiation 'c10::basic_string_view' being compiled
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/string_view.h(160): warning C4814: 'c10::basic_string_view::remove_prefix': in C++14 'constexpr' will not imply 'const'; consider explicitly spe
cifying 'const'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/string_view.h(169): warning C4814: 'c10::basic_string_view::remove_suffix': in C++14 'constexpr' will not imply 'const'; consider explicitly spe
cifying 'const'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/string_view.h(175): warning C4814: 'c10::basic_string_view::swap': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying '
const'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(476): warning C4814: 'c10::optionalc10::ScalarType::contained_val': in C++14 'constexpr' will not imply 'const'; consider explicitly spec
ifying 'const'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/ScalarTypeToTypeMeta.h(30): note: see reference to class template instantiation 'c10::optionalc10::ScalarType' being compiled
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(477): error C2556: 'c10::ScalarType &c10::optionalc10::ScalarType::contained_val(void) const &': overloaded function differs only by retu
rn type from 'const c10::ScalarType &c10::optionalc10::ScalarType::contained_val(void) const &'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(471): note: see declaration of 'c10::optionalc10::ScalarType::contained_val'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(477): error C2373: 'c10::optionalc10::ScalarType::contained_val': redefinition; different type modifiers
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(471): note: see declaration of 'c10::optionalc10::ScalarType::contained_val'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(478): error C2059: syntax error: 'return'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(478): error C2238: unexpected token(s) preceding ';'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(481): error C2144: syntax error: 'void' should be preceded by ';'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(476): warning C4814: 'c10::optionalcaffe2::TypeMeta::contained_val': in C++14 'constexpr' will not imply 'const'; consider explicitly spe
cifying 'const'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/ScalarTypeToTypeMeta.h(30): note: see reference to class template instantiation 'c10::optionalcaffe2::TypeMeta' being compiled
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(477): error C2556: 'caffe2::TypeMeta &c10::optionalcaffe2::TypeMeta::contained_val(void) const &': overloaded function differs only by re
turn type from 'const caffe2::TypeMeta &c10::optionalcaffe2::TypeMeta::contained_val(void) const &'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(471): note: see declaration of 'c10::optionalcaffe2::TypeMeta::contained_val'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(477): error C2373: 'c10::optionalcaffe2::TypeMeta::contained_val': redefinition; different type modifiers
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(471): note: see declaration of 'c10::optionalcaffe2::TypeMeta::contained_val'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/ScalarTypeToTypeMeta.h(31): error C2039: 'has_value': is not a member of 'c10::optionalcaffe2::TypeMeta'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/ScalarTypeToTypeMeta.h(30): note: see declaration of 'c10::optionalcaffe2::TypeMeta'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/ScalarTypeToTypeMeta.h(32): error C2440: 'return': cannot convert from 'const c10::nullopt_t' to 'c10::optionalc10::ScalarType'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/ScalarTypeToTypeMeta.h(32): note: No constructor could take the source type, or constructor overload resolution was ambiguous
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/ScalarTypeToTypeMeta.h(34): error C2819: type 'c10::optionalcaffe2::TypeMeta' does not have an overloaded member 'operator ->'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/ScalarTypeToTypeMeta.h(30): note: see declaration of 'c10::optionalcaffe2::TypeMeta'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/ScalarTypeToTypeMeta.h(34): note: did you intend to use '.' instead?
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/ScalarTypeToTypeMeta.h(34): error C2039: 'toScalarType': is not a member of 'c10::optionalcaffe2::TypeMeta'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/ScalarTypeToTypeMeta.h(30): note: see declaration of 'c10::optionalcaffe2::TypeMeta'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(476): warning C4814: 'c10::optionalc10::Layout::contained_val': in C++14 'constexpr' will not imply 'const'; consider explicitly specifyi
ng 'const'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(36): note: see reference to class template instantiation 'c10::optionalc10::Layout' being compiled
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(477): error C2556: 'c10::Layout &c10::optionalc10::Layout::contained_val(void) const &': overloaded function differs only by return type
from 'const c10::Layout &c10::optionalc10::Layout::contained_val(void) const &'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(471): note: see declaration of 'c10::optionalc10::Layout::contained_val'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(477): error C2373: 'c10::optionalc10::Layout::contained_val': redefinition; different type modifiers
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(471): note: see declaration of 'c10::optionalc10::Layout::contained_val'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(37): error C2039: 'value_or': is not a member of 'c10::optionalc10::Layout'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(24): note: see declaration of 'c10::optionalc10::Layout'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(476): warning C4814: 'c10::optionalc10::Device::contained_val': in C++14 'constexpr' will not imply 'const'; consider explicitly specifyi
ng 'const'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(40): note: see reference to class template instantiation 'c10::optionalc10::Device' being compiled
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(477): error C2556: 'c10::Device &c10::optionalc10::Device::contained_val(void) const &': overloaded function differs only by return type
from 'const c10::Device &c10::optionalc10::Device::contained_val(void) const &'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(471): note: see declaration of 'c10::optionalc10::Device::contained_val'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(477): error C2373: 'c10::optionalc10::Device::contained_val': redefinition; different type modifiers
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(471): note: see declaration of 'c10::optionalc10::Device::contained_val'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(476): warning C4814: 'c10::optional::contained_val': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'con
st'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(44): note: see reference to class template instantiation 'c10::optional' being compiled
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(477): error C2556: 'bool &c10::optional::contained_val(void) const &': overloaded function differs only by return type from 'const bo
ol &c10::optional::contained_val(void) const &'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(471): note: see declaration of 'c10::optional::contained_val'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(477): error C2373: 'c10::optional::contained_val': redefinition; different type modifiers
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(471): note: see declaration of 'c10::optional::contained_val'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(45): error C2039: 'value_or': is not a member of 'c10::optional'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(44): note: see declaration of 'c10::optional'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(148): error C2664: 'void c10::TensorOptions::set_layout(c10::optionalc10::Layout) noexcept &': cannot convert argument 1 from 'c10::
Layout' to 'c10::optionalc10::Layout'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(148): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(177): error C2664: 'void c10::TensorOptions::set_dtype(c10::optionalc10::ScalarType) noexcept &': cannot convert argument 1 from 'ca
ffe2::TypeMeta' to 'c10::optionalcaffe2::TypeMeta'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(177): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(182): error C2664: 'void c10::TensorOptions::set_dtype(c10::optionalc10::ScalarType) noexcept &': cannot convert argument 1 from 'c1
0::ScalarType' to 'c10::optionalcaffe2::TypeMeta'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(182): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(476): warning C4814: 'c10::optionalc10::MemoryFormat::contained_val': in C++14 'constexpr' will not imply 'const'; consider explicitly sp
ecifying 'const'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(187): note: see reference to class template instantiation 'c10::optionalc10::MemoryFormat' being compiled
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(477): error C2556: 'c10::MemoryFormat &c10::optionalc10::MemoryFormat::contained_val(void) const &': overloaded function differs only by
return type from 'const c10::MemoryFormat &c10::optionalc10::MemoryFormat::contained_val(void) const &'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(471): note: see declaration of 'c10::optionalc10::MemoryFormat::contained_val'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(477): error C2373: 'c10::optionalc10::MemoryFormat::contained_val': redefinition; different type modifiers
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(471): note: see declaration of 'c10::optionalc10::MemoryFormat::contained_val'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(187): error C2664: 'void c10::TensorOptions::set_memory_format(c10::optionalc10::MemoryFormat) noexcept &': cannot convert argument
1 from 'c10::MemoryFormat' to 'c10::optionalc10::MemoryFormat'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(187): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(287): error C2446: ':': no conversion from 'const c10::nullopt_t' to 'c10::optionalc10::Device'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(287): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(308): error C2446: ':': no conversion from 'const c10::nullopt_t' to 'c10::optionalcaffe2::TypeMeta'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(308): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(324): error C2446: ':': no conversion from 'const c10::nullopt_t' to 'c10::optionalc10::Layout'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(324): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(341): error C2446: ':': no conversion from 'const c10::nullopt_t' to 'c10::optional'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(341): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(373): error C2446: ':': no conversion from 'const c10::nullopt_t' to 'c10::optional'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(373): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(388): error C2446: ':': no conversion from 'const c10::nullopt_t' to 'c10::optionalc10::MemoryFormat'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(388): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(429): error C2039: 'has_value': is not a member of 'c10::optionalc10::MemoryFormat'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(268): note: see declaration of 'c10::optionalc10::MemoryFormat'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(430): error C2100: illegal indirection
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(459): error C2451: conditional expression of type 'c10::optionalc10::Device' is illegal
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(459): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(460): error C2100: illegal indirection
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(469): error C2451: conditional expression of type 'c10::optionalcaffe2::TypeMeta' is illegal
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(469): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(470): error C2100: illegal indirection
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(479): error C2451: conditional expression of type 'c10::optionalc10::ScalarType' is illegal
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(479): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(480): error C2100: illegal indirection
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(489): error C2451: conditional expression of type 'c10::optionalc10::Layout' is illegal
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(489): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(490): error C2100: illegal indirection
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(490): error C2440: '=': cannot convert from 'c10::optionalc10::Layout' to 'c10::Layout'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(490): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(499): error C2451: conditional expression of type 'c10::optional' is illegal
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(499): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(500): error C2100: illegal indirection
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(500): error C2440: '=': cannot convert from 'c10::optional' to 'bool'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(500): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(509): error C2451: conditional expression of type 'c10::optional' is illegal
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(509): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(510): error C2100: illegal indirection
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(510): error C2440: '=': cannot convert from 'c10::optional' to 'bool'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(510): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(519): error C2451: conditional expression of type 'c10::optionalc10::MemoryFormat' is illegal
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(519): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(520): error C2100: illegal indirection
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(520): error C2440: '=': cannot convert from 'c10::optionalc10::MemoryFormat' to 'c10::MemoryFormat'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(520): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(568): error C2664: 'caffe2::TypeMeta c10::TensorOptions::dtype(void) noexcept const': cannot convert argument 1 from 'caffe2::TypeMeta
' to 'c10::optionalcaffe2::TypeMeta'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(568): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(573): error C2664: 'caffe2::TypeMeta c10::TensorOptions::dtype(void) noexcept const': cannot convert argument 1 from 'caffe2::TypeMeta
' to 'c10::optionalcaffe2::TypeMeta'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(573): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(579): error C2664: 'c10::Layout c10::TensorOptions::layout(void) noexcept const': cannot convert argument 1 from 'c10::Layout' to 'c10
::optionalc10::Layout'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(579): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(597): error C2664: 'bool c10::TensorOptions::requires_grad(void) noexcept const': cannot convert argument 1 from 'bool' to 'c10::optio
nal'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(597): note: No constructor could take the source type, or constructor overload resolution was ambiguous
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(603): error C2664: 'c10::TensorOptions c10::TensorOptions::memory_format(c10::optionalc10::MemoryFormat) noexcept const': cannot con
vert argument 1 from 'c10::MemoryFormat' to 'c10::optionalc10::MemoryFormat'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(603): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(795): error C2664: 'c10::Layout c10::TensorOptions::layout(void) noexcept const': cannot convert argument 1 from 'c10::Layout' to 'c10
::optionalc10::Layout'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(795): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(796): error C2228: left of '.device' must have class/struct/union
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorImpl.h(720): error C2039: 'has_value': is not a member of 'c10::optionalc10::Device'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(25): note: see declaration of 'c10::optionalc10::Device'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorImpl.h(722): error C2100: illegal indirection
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorImpl.h(722): error C2039: 'index': is not a member of 'c10::optionalc10::Device'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(25): note: see declaration of 'c10::optionalc10::Device'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorImpl.h(726): error C2039: 'has_value': is not a member of 'c10::optionalc10::Device'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(25): note: see declaration of 'c10::optionalc10::Device'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorImpl.h(728): error C2100: illegal indirection
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorImpl.h(1327): error C2039: 'has_value': is not a member of 'c10::optionalc10::Device'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(25): note: see declaration of 'c10::optionalc10::Device'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorImpl.h(1331): error C2100: illegal indirection
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorImpl.h(1331): error C2039: 'type': is not a member of 'c10::optionalc10::Device'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(25): note: see declaration of 'c10::optionalc10::Device'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorImpl.h(1562): error C2679: binary '=': no operator found which takes a right-hand operand of type 'c10::Device' (or there is no acceptable conve
rsion)
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(479): note: could be 'c10::optionalc10::Device &c10::optionalc10::Device::operator =(c10::optionalc10::Device &&)'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(479): note: or 'c10::optionalc10::Device &c10::optionalc10::Device::operator =(const c10::optionalc10::Device &)'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorImpl.h(1562): note: while trying to match the argument list '(c10::optionalc10::Device, c10::Device)'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorImpl.h(1573): error C2679: binary '=': no operator found which takes a right-hand operand of type 'c10::Device' (or there is no acceptable conve
rsion)
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(479): note: could be 'c10::optionalc10::Device &c10::optionalc10::Device::operator =(c10::optionalc10::Device &&)'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(479): note: or 'c10::optionalc10::Device &c10::optionalc10::Device::operator =(const c10::optionalc10::Device &)'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorImpl.h(1573): note: while trying to match the argument list '(c10::optionalc10::Device, c10::Device)'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorImpl.h(1637): error C2679: binary '=': no operator found which takes a right-hand operand of type 'c10::Device' (or there is no acceptable conve
rsion)
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(479): note: could be 'c10::optionalc10::Device &c10::optionalc10::Device::operator =(c10::optionalc10::Device &&)'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(479): note: or 'c10::optionalc10::Device &c10::optionalc10::Device::operator =(const c10::optionalc10::Device &)'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorImpl.h(1637): note: while trying to match the argument list '(c10::optionalc10::Device, c10::Device)'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorImpl.h(1687): error C2679: binary '=': no operator found which takes a right-hand operand of type 'c10::Device' (or there is no acceptable conve
rsion)
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(479): note: could be 'c10::optionalc10::Device &c10::optionalc10::Device::operator =(c10::optionalc10::Device &&)'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(479): note: or 'c10::optionalc10::Device &c10::optionalc10::Device::operator =(const c10::optionalc10::Device &)'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorImpl.h(1687): note: while trying to match the argument list '(c10::optionalc10::Device, c10::Device)'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\ATen/core/DeprecatedTypeProperties.h(99): error C2664: 'caffe2::TypeMeta c10::TensorOptions::dtype(void) noexcept const': cannot convert argument 1 from 'caffe
2::TypeMeta' to 'c10::optionalcaffe2::TypeMeta'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\ATen/core/DeprecatedTypeProperties.h(99): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be calle
d
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\ATen/core/DeprecatedTypeProperties.h(100): error C2228: left of '.device' must have class/struct/union
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\ATen/core/DeprecatedTypeProperties.h(101): error C2228: left of '.layout' must have class/struct/union
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\ATen/core/DeprecatedTypeProperties.h(107): error C2039: 'has_value': is not a member of 'c10::optionalc10::Device'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(25): note: see declaration of 'c10::optionalc10::Device'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\ATen/core/DeprecatedTypeProperties.h(110): error C2039: 'value': is not a member of 'c10::optionalc10::Device'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/TensorOptions.h(25): note: see declaration of 'c10::optionalc10::Device'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\ATen/core/DeprecatedTypeProperties.h(110): error C2512: 'c10::Device': no appropriate default constructor available
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/Device.h(30): note: see declaration of 'c10::Device'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(476): warning C4814: 'c10::optionalat::TensorList::contained_val': in C++14 'constexpr' will not imply 'const'; consider explicitly speci
fying 'const'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\ATen/core/TensorBody.h(661): note: see reference to class template instantiation 'c10::optionalat::TensorList' being compiled
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/core/MemoryFormat.h(63): note: see reference to class template instantiation 'c10::ArrayRef<int64_t>' being compiled
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(477): error C2556: 'at::TensorList &c10::optionalat::TensorList::contained_val(void) const &': overloaded function differs only by return
type from 'const at::TensorList &c10::optionalat::TensorList::contained_val(void) const &'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(471): note: see declaration of 'c10::optionalat::TensorList::contained_val'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(477): error C2373: 'c10::optionalat::TensorList::contained_val': redefinition; different type modifiers
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(471): note: see declaration of 'c10::optionalat::TensorList::contained_val'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\ATen/core/TensorBody.h(661): error C2440: 'default argument': cannot convert from 'const c10::nullopt_t' to 'c10::optionalat::TensorList'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\ATen/core/TensorBody.h(661): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\ATen/core/TensorBody.h(661): error C2440: 'default argument': cannot convert from 'const c10::nullopt_t' to 'c10::optional'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\ATen/core/TensorBody.h(661): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\ATen/core/TensorBody.h(734): error C2440: 'default argument': cannot convert from 'const c10::nullopt_t' to 'c10::optional'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\ATen/core/TensorBody.h(734): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(183): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted
with
[
T=at::Tensor
]
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(367): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled
with
[
T=at::Tensor
]
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\type_traits(487): note: see reference to class template instantiation 'c10::trivially_copyable_optimization_optional_base' being compiled
with
[
T=at::Tensor
]
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\type_traits(499): note: see reference to class template instantiation 'std::is_constructible<_Ty,const c10::trivially_copyable_optimization_optional_base &>' being co
mpiled
with
[
_Ty=c10::trivially_copyable_optimization_optional_baseat::Tensor,
T=at::Tensor
]
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(408): note: see reference to class template instantiation 'std::is_copy_constructible<c10::trivially_copyable_optimization_optional_base

' being compiled
with
[
T=at::Tensor
]
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(427): note: see reference to class template instantiation 'OptionalBaseat::Tensor' being compiled
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\ATen/core/TensorBody.h(734): note: see reference to class template instantiation 'c10::optionalat::Tensor' being compiled
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(395): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted
with
[
T=at::Tensor
]
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(476): warning C4814: 'c10::optionalat::Tensor::contained_val': in C++14 'constexpr' will not imply 'const'; consider explicitly specifyin
g 'const'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(477): error C2556: 'at::Tensor &c10::optionalat::Tensor::contained_val(void) const &': overloaded function differs only by return type fr
om 'const at::Tensor &c10::optionalat::Tensor::contained_val(void) const &'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(471): note: see declaration of 'c10::optionalat::Tensor::contained_val'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(477): error C2373: 'c10::optionalat::Tensor::contained_val': redefinition; different type modifiers
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(471): note: see declaration of 'c10::optionalat::Tensor::contained_val'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(476): warning C4814: 'c10::optional<int64_t>::contained_val': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying '
const'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\ATen/core/TensorBody.h(774): note: see reference to class template instantiation 'c10::optional<int64_t>' being compiled
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(477): error C2556: 'int64_t &c10::optional<int64_t>::contained_val(void) const &': overloaded function differs only by return type from 'co
nst int64_t &c10::optional<int64_t>::contained_val(void) const &'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(471): note: see declaration of 'c10::optional<int64_t>::contained_val'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(477): error C2373: 'c10::optional<int64_t>::contained_val': redefinition; different type modifiers
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(471): note: see declaration of 'c10::optional<int64_t>::contained_val'
D:\ProgramData\Anaconda3\envs\pytorch191\lib\site-packages\torch\include\c10/util/Optional.h(477): fatal error C1003: error count exceeds 100; stopping compilation
error: command 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe' failed with exit status 2

@hukaixuan19970627 hukaixuan19970627 changed the title python setup.py develop出错 windows: python setup.py develop出错 Jan 11, 2022
@hukaixuan19970627
Copy link
Owner

windows不好编译这类带c++的项目,我身边也没有带显卡的windows,解决不了。
你去mmdetection的issue里搜搜看?可能有类似的错误

@SSTato
Copy link
Author

SSTato commented Jan 11, 2022

请问可以提供与yolov5m一样的yolov5s、yolov5l、yolov5x的下载链接吗
image

@hukaixuan19970627
Copy link
Owner

hukaixuan19970627 commented Jan 11, 2022 via email

@Wangfeng2394
Copy link

大佬你看下知乎呗,我给你发了一些截图,就是runs/train/exp/val_batch0_labels.jpg这张图像应该是读取的我标注的图像,然后好像跟我标注的匹配不起来(框是对的,但是名称不对)

@SSTato SSTato closed this as completed Jan 11, 2022
@SSTato
Copy link
Author

SSTato commented Jan 11, 2022

table notes里面有-

table notes里没有找到s、l、x的下载链接呀 0_o
image

@SSTato SSTato reopened this Jan 11, 2022
@Wangfeng2394
Copy link

这个我遇到了,cl.exe 需要添加到系统变量里面

@Wangfeng2394
Copy link

图片

@Wangfeng2394
Copy link

图片
你这不是都报出来了嘛

@SSTato
Copy link
Author

SSTato commented Jan 11, 2022

图片 你这不是都报出来了嘛

可以加个好友吗

@hukaixuan19970627
Copy link
Owner

table notes里面有-

table notes里没有找到s、l、x的下载链接呀 0_o image

image

@SSTato
Copy link
Author

SSTato commented Jan 12, 2022

table notes里面有-

table notes里没有找到s、l、x的下载链接呀 0_o image

image

我没明白,我指的是和你提供的yolov5m一样的s、l、x的训练完成的结果,就想下面这些文件
image

@hukaixuan19970627
Copy link
Owner

嗷,其它的我没训,我一个人不可能把精力、资源全放在这个项目上,你训完的话欢迎提PR把这些权重加进来

@SSTato
Copy link
Author

SSTato commented Jan 12, 2022

嗷,其它的我没训,我一个人不可能把精力、资源全放在这个项目上,你训完的话欢迎提PR把这些权重加进来

我很乐意这么做,前提是我的环境能搭好,我现在使用的是矩池云,他会在训练一半的时候出现
RuntimeError: CUDA error: device-side assert triggered
总也中断训练

@SSTato
Copy link
Author

SSTato commented Jan 12, 2022

图片 你这不是都报出来了嘛

我加了环境变量还是不行啊
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64
image

@hukaixuan19970627
Copy link
Owner

嗷,其它的我没训,我一个人不可能把精力、资源全放在这个项目上,你训完的话欢迎提PR把这些权重加进来

我很乐意这么做,前提是我的环境能搭好,我现在使用的是矩池云,他会在训练一半的时候出现 RuntimeError: CUDA error: device-side assert triggered 总也中断训练

训练到一半出现cuda的问题?报错的具体内容是什么?

@SSTato
Copy link
Author

SSTato commented Jan 12, 2022

嗷,其它的我没训,我一个人不可能把精力、资源全放在这个项目上,你训完的话欢迎提PR把这些权重加进来

我很乐意这么做,前提是我的环境能搭好,我现在使用的是矩池云,他会在训练一半的时候出现 RuntimeError: CUDA error: device-side assert triggered 总也中断训练

训练到一半出现cuda的问题?报错的具体内容是什么?

Epoch gpu_mem box obj cls theta labels img_size
3/99 6.65G 0.1236 0.2411 0.0009683 0.2103 155 1024: 100%|██████████| 236/236 [19:02<00:00, 4.84s/it]
Class Images Labels P R mAP@.5 mAP@.5:.95: 0%| | 0/38 [00:00<?, ?it/s] /pytorch/aten/src/ATen/native/cuda/Indexing.cu:702: indexSelectLargeIndex: block: [67,0,0], thread: [54,0,0] Assertion srcIndex < srcSelectDimSize failed.
/pytorch/aten/src/ATen/native/cuda/Indexing.cu:702: indexSelectLargeIndex: block: [67,0,0], thread: [55,0,0] Assertion srcIndex < srcSelectDimSize failed.
/pytorch/aten/src/ATen/native/cuda/Indexing.cu:702: indexSelectLargeIndex: block: [67,0,0], thread: [56,0,0] Assertion srcIndex < srcSelectDimSize failed.
/pytorch/aten/src/ATen/native/cuda/Indexing.cu:702: indexSelectLargeIndex: block: [67,0,0], thread: [57,0,0] Assertion srcIndex < srcSelectDimSize failed.
/pytorch/aten/src/ATen/native/cuda/Indexing.cu:702: indexSelectLargeIndex: block: [67,0,0], thread: [58,0,0] Assertion srcIndex < srcSelectDimSize failed.
Class Images Labels P R mAP@.5 mAP@.5:.95: 0%| | 0/38 [00:02<?, ?it/s]
Traceback (most recent call last):
File "train.py", line 630, in
main(opt)
File "train.py", line 527, in main
train(opt.hyp, opt, device, callbacks)
File "train.py", line 361, in train
results, maps, _ = val.run(data_dict,
File "/root/miniconda3/envs/myconda/lib/python3.8/site-packages/torch/autograd/grad_mode.py", line 28, in decorate_context
return func(*args, *kwargs)
File "/mnt/yolov5_obb/val.py", line 206, in run
out = non_max_suppression_obb(out, conf_thres, iou_thres, labels=lb, multi_label=True, agnostic=single_cls) # list
(n, [xylsθ, conf, cls]) θ ∈ [-pi/2, pi/2)
File "/mnt/yolov5_obb/utils/general.py", line 853, in non_max_suppression_obb
_, i = obb_nms(rboxes, scores, iou_thres)
File "/mnt/yolov5_obb/utils/nms_rotated/nms_rotated_wrapper.py", line 40, in obb_nms
inds = nms_rotated_ext.nms_rotated(dets_th, scores, iou_thr)
RuntimeError: CUDA error: device-side assert triggered
CUDA kernel errors might be asynchronously reported at some other API call,so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1.

@hukaixuan19970627
Copy link
Owner

嗷,其它的我没训,我一个人不可能把精力、资源全放在这个项目上,你训完的话欢迎提PR把这些权重加进来

我很乐意这么做,前提是我的环境能搭好,我现在使用的是矩池云,他会在训练一半的时候出现 RuntimeError: CUDA error: device-side assert triggered 总也中断训练

训练到一半出现cuda的问题?报错的具体内容是什么?

Epoch gpu_mem box obj cls theta labels img_size 3/99 6.65G 0.1236 0.2411 0.0009683 0.2103 155 1024: 100%|██████████| 236/236 [19:02<00:00, 4.84s/it] Class Images Labels P R mAP@.5 mAP@.5:.95: 0%| | 0/38 [00:00<?, ?it/s] /pytorch/aten/src/ATen/native/cuda/Indexing.cu:702: indexSelectLargeIndex: block: [67,0,0], thread: [54,0,0] Assertion srcIndex < srcSelectDimSize failed. /pytorch/aten/src/ATen/native/cuda/Indexing.cu:702: indexSelectLargeIndex: block: [67,0,0], thread: [55,0,0] Assertion srcIndex < srcSelectDimSize failed. /pytorch/aten/src/ATen/native/cuda/Indexing.cu:702: indexSelectLargeIndex: block: [67,0,0], thread: [56,0,0] Assertion srcIndex < srcSelectDimSize failed. /pytorch/aten/src/ATen/native/cuda/Indexing.cu:702: indexSelectLargeIndex: block: [67,0,0], thread: [57,0,0] Assertion srcIndex < srcSelectDimSize failed. /pytorch/aten/src/ATen/native/cuda/Indexing.cu:702: indexSelectLargeIndex: block: [67,0,0], thread: [58,0,0] Assertion srcIndex < srcSelectDimSize failed. Class Images Labels P R mAP@.5 mAP@.5:.95: 0%| | 0/38 [00:02<?, ?it/s] Traceback (most recent call last): File "train.py", line 630, in main(opt) File "train.py", line 527, in main train(opt.hyp, opt, device, callbacks) File "train.py", line 361, in train results, maps, _ = val.run(data_dict, File "/root/miniconda3/envs/myconda/lib/python3.8/site-packages/torch/autograd/grad_mode.py", line 28, in decorate_context return func(*args, *kwargs) File "/mnt/yolov5_obb/val.py", line 206, in run out = non_max_suppression_obb(out, conf_thres, iou_thres, labels=lb, multi_label=True, agnostic=single_cls) # list(n, [xylsθ, conf, cls]) θ ∈ [-pi/2, pi/2) File "/mnt/yolov5_obb/utils/general.py", line 853, in non_max_suppression_obb _, i = obb_nms(rboxes, scores, iou_thres) File "/mnt/yolov5_obb/utils/nms_rotated/nms_rotated_wrapper.py", line 40, in obb_nms inds = nms_rotated_ext.nms_rotated(dets_th, scores, iou_thr) RuntimeError: CUDA error: device-side assert triggered CUDA kernel errors might be asynchronously reported at some other API call,so the stacktrace below might be incorrect. For debugging consider passing CUDA_LAUNCH_BLOCKING=1.

#147

@CHANGXU12
Copy link

其他的项目python setup.py也报类似错,请问最后解决了吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants