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

How to compile Corner Pooling Layers on windows? #178

Open
NingCY opened this issue Sep 9, 2021 · 1 comment
Open

How to compile Corner Pooling Layers on windows? #178

NingCY opened this issue Sep 9, 2021 · 1 comment

Comments

@NingCY
Copy link

NingCY commented Sep 9, 2021

I compiled NMS successfully using vs2015, but when I compile Corner Pooling layer, errors occured as follows:
` !! WARNING !!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Your compiler (cl 19.00.24210) may be ABI-incompatible with PyTorch!
Please use a compiler that is ABI-compatible with GCC 5.0 and above.
See https://gcc.gnu.org/onlinedocs/libstdc++/manual/abi.html.

See https://gist.github.com/goldsborough/d466f43e8ffc948ff92de7486c5216d6
for instructions on how to install GCC 5 or higher.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

                          !! WARNING !!

warnings.warn(ABI_INCOMPATIBILITY_WARNING.format(compiler))
building 'top_pool' extension
Emitting ninja build file E:\Ning\code_iris_detection\CornerNet\models\py_utils_cpools\build\temp.win-amd64-3.8\Release\build.ninja...
Compiling objects...
Using envvar MAX_JOBS (8) as the number of workers...
[1/1] cl /showIncludes /nologo /Ox /W3 /GL /DNDEBUG /MD /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /EHsc -ID:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include -ID:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\torch\csrc\api\include -ID:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\TH -ID:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\THC -ID:\Qiuyu\anaconda\envs\torch-py38\include -ID:\Qiuyu\anaconda\envs\torch-py38\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\winrt" -c E:\Ning\code_iris_detection\CornerNet\models\py_utils_cpools\src\top_pool.cpp /FoE:\Ning\code_iris_detection\CornerNet\models\py_utils_cpools\build\temp.win-amd64-3.8\Release\src/top_pool.obj -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=top_pool -D_GLIBCXX_USE_CXX11_ABI=0 /std:c++14
FAILED: E:/Ning/code_iris_detection/CornerNet/models/py_utils/_cpools/build/temp.win-amd64-3.8/Release/src/top_pool.obj
cl /showIncludes /nologo /Ox /W3 /GL /DNDEBUG /MD /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /EHsc -ID:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include -ID:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\torch\csrc\api\include -ID:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\TH -ID:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\THC -ID:\Qiuyu\anaconda\envs\torch-py38\include -ID:\Qiuyu\anaconda\envs\torch-py38\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\winrt" -c E:\Ning\code_iris_detection\CornerNet\models\py_utils_cpools\src\top_pool.cpp /FoE:\Ning\code_iris_detection\CornerNet\models\py_utils_cpools\build\temp.win-amd64-3.8\Release\src/top_pool.obj -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=top_pool -D_GLIBCXX_USE_CXX11_ABI=0 /std:c++14
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/macros/Macros.h(189): warning C4067: unexpected tokens following preprocessor directive - expected a newline
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/DispatchKeySet.h(59): error C3250: '$L0': declaration is not allowed in 'constexpr' function body
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/DispatchKeySet.h(59): error C3249: illegal statement or sub-expression for 'constexpr' function
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/DispatchKeySet.h(59): error C3250: '$L0': declaration is not allowed in 'constexpr' function body
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/DispatchKeySet.h(59): error C3250: '$L0': declaration is not allowed in 'constexpr' function body
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/DispatchKeySet.h(59): note: see usage of '++'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/DispatchKeySet.h(59): error C3250: 'k': declaration is not allowed in 'constexpr' function body
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/DispatchKeySet.h(60): error C3249: illegal statement or sub-expression for 'constexpr' function
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/DispatchKeySet.h(60): note: see usage of '|='
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/DispatchKeySet.h(66): warning C4800: 'uint64_t': forcing value to bool 'true' or 'false' (performance warning)
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/complex.h(156): warning C4814: 'c10::complex::operator =': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/complex.h(277): note: see reference to class template instantiation 'c10::complex' being compiled
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/DispatchKeySet.h(57): note: see reference to class template instantiation 'std::initializer_listc10::DispatchKey' being compiled
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/complex.h(161): warning C4814: 'c10::complex::operator +=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/complex.h(166): warning C4814: 'c10::complex::operator -=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/complex.h(172): warning C4814: 'c10::complex::operator *=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/complex.h(178): warning C4814: 'c10::complex::operator /=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/complex.h(185): warning C4814: 'c10::complex::operator =': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/complex.h(192): warning C4814: 'c10::complex::operator +=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\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:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/complex.h(211): warning C4814: 'c10::complex::operator *=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/complex.h(229): warning C4814: 'c10::complex::operator /=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/complex.h(237): warning C4814: 'c10::complex::operator =': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/complex.h(270): warning C4814: 'c10::complex::real': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/complex.h(276): warning C4814: 'c10::complex::imag': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/complex.h(156): warning C4814: 'c10::complex::operator =': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/complex.h(281): note: see reference to class template instantiation 'c10::complex' being compiled
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/complex.h(161): warning C4814: 'c10::complex::operator +=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/complex.h(166): warning C4814: 'c10::complex::operator -=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/complex.h(172): warning C4814: 'c10::complex::operator *=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/complex.h(178): warning C4814: 'c10::complex::operator /=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/complex.h(185): warning C4814: 'c10::complex::operator =': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/complex.h(192): warning C4814: 'c10::complex::operator +=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\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:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/complex.h(211): warning C4814: 'c10::complex::operator *=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/complex.h(229): warning C4814: 'c10::complex::operator /=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/complex.h(237): warning C4814: 'c10::complex::operator =': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/complex.h(270): warning C4814: 'c10::complex::real': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/complex.h(276): warning C4814: 'c10::complex::imag': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/complex.h(156): warning C4814: 'c10::complex::operator =': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/complex.h(285): note: see reference to class template instantiation 'c10::complex' being compiled
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/complex.h(161): warning C4814: 'c10::complex::operator +=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/complex.h(166): warning C4814: 'c10::complex::operator -=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/complex.h(172): warning C4814: 'c10::complex::operator *=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/complex.h(178): warning C4814: 'c10::complex::operator /=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/complex.h(185): warning C4814: 'c10::complex::operator =': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/complex.h(192): warning C4814: 'c10::complex::operator +=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\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:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/complex.h(211): warning C4814: 'c10::complex::operator *=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/complex.h(229): warning C4814: 'c10::complex::operator /=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/complex.h(237): warning C4814: 'c10::complex::operator =': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/complex.h(270): warning C4814: 'c10::complex::real': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/complex.h(276): warning C4814: 'c10::complex::imag': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Array.h(106): warning C4814: 'c10::guts::array<_Tp,_Nm>::fill': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Array.h(201): note: see reference to class template instantiation 'c10::guts::array<_Tp,_Nm>' being compiled
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Array.h(109): warning C4814: 'c10::guts::array<_Tp,_Nm>::swap': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Array.h(113): warning C4814: 'c10::guts::array<_Tp,_Nm>::begin': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Array.h(119): warning C4814: 'c10::guts::array<_Tp,_Nm>::end': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Array.h(125): warning C4814: 'c10::guts::array<_Tp,_Nm>::rbegin': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Array.h(131): warning C4814: 'c10::guts::array<_Tp,_Nm>::rend': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Array.h(157): warning C4814: 'c10::guts::array<_Tp,_Nm>::operator []': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Array.h(169): warning C4814: 'c10::guts::array<_Tp,_Nm>::at': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Array.h(182): warning C4814: 'c10::guts::array<_Tp,_Nm>::front': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Array.h(188): warning C4814: 'c10::guts::array<_Tp,_Nm>::back': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Array.h(197): warning C4814: 'c10::guts::array<_Tp,_Nm>::data': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(465): warning C4814: 'c10::optional::contained_val': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(680): note: see reference to class template instantiation 'c10::optional' being compiled
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(468): warning C4814: 'c10::optional::contained_val': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(630): warning C4814: 'c10::optional::operator ->': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(639): warning C4814: 'c10::optional::operator *': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(644): warning C4814: 'c10::optional::operator *': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(656): warning C4814: 'c10::optional::value': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(662): warning C4814: 'c10::optional::value': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(674): warning C4814: 'c10::optional::value_or': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\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:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/Scalar.h(124): warning C4800: 'const int64_t': forcing value to bool 'true' or 'false' (performance warning)
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/reverse_iterator.h(93): warning C4814: 'c10::reverse_iterator<_Iterator>::operator =': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/reverse_iterator.h(177): note: see reference to class template instantiation 'c10::reverse_iterator<_Iterator>' being compiled
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/reverse_iterator.h(126): warning C4814: 'c10::reverse_iterator<_Iterator>::operator ++': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/reverse_iterator.h(132): warning C4814: 'c10::reverse_iterator<_Iterator>::operator ++': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/reverse_iterator.h(137): warning C4814: 'c10::reverse_iterator<_Iterator>::operator --': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/reverse_iterator.h(143): warning C4814: 'c10::reverse_iterator<_Iterator>::operator --': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/reverse_iterator.h(152): warning C4814: 'c10::reverse_iterator<_Iterator>::operator +=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/reverse_iterator.h(161): warning C4814: 'c10::reverse_iterator<_Iterator>::operator -=': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\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 specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/string_view.h(643): note: see reference to class template instantiation 'c10::basic_string_view' being compiled
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/string_view.h(159): warning C4814: 'c10::basic_string_view::remove_prefix': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/string_view.h(168): warning C4814: 'c10::basic_string_view::remove_suffix': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/string_view.h(174): warning C4814: 'c10::basic_string_view::swap': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/ConstexprCrc.h(103): error C3250: 'i': declaration is not allowed in 'constexpr' function body
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/ConstexprCrc.h(103): error C3249: illegal statement or sub-expression for 'constexpr' function
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/ConstexprCrc.h(103): note: see usage of '++'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/ConstexprCrc.h(104): error C3249: illegal statement or sub-expression for 'constexpr' function
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/ConstexprCrc.h(105): error C3249: illegal statement or sub-expression for 'constexpr' function
D:\Qiuyu\anaconda\envs\torch-py38\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 specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/ConstexprCrc.h(123): note: see reference to class template instantiation 'c10::basic_string_view' being compiled
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/string_view.h(159): warning C4814: 'c10::basic_string_view::remove_prefix': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/string_view.h(168): warning C4814: 'c10::basic_string_view::remove_suffix': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/string_view.h(174): warning C4814: 'c10::basic_string_view::swap': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(465): warning C4814: 'c10::optionalc10::ScalarType::contained_val': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/ScalarTypeToTypeMeta.h(29): note: see reference to class template instantiation 'c10::optionalc10::ScalarType' being compiled
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(466): error C2556: 'c10::ScalarType &c10::optionalc10::ScalarType::contained_val(void) const &': overloaded function differs only by return type from 'const c10::ScalarType &c10::optionalc10::ScalarType::contained_val(void) const &'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(460): note: see declaration of 'c10::optionalc10::ScalarType::contained_val'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(466): error C2373: 'c10::optionalc10::ScalarType::contained_val': redefinition; different type modifiers
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(460): note: see declaration of 'c10::optionalc10::ScalarType::contained_val'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(467): error C2059: syntax error: 'return'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(467): error C2238: unexpected token(s) preceding ';'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(470): error C2144: syntax error: 'void' should be preceded by ';'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(465): warning C4814: 'c10::optionalcaffe2::TypeMeta::contained_val': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/ScalarTypeToTypeMeta.h(29): note: see reference to class template instantiation 'c10::optionalcaffe2::TypeMeta' being compiled
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(466): error C2556: 'caffe2::TypeMeta &c10::optionalcaffe2::TypeMeta::contained_val(void) const &': overloaded function differs only by return type from 'const caffe2::TypeMeta &c10::optionalcaffe2::TypeMeta::contained_val(void) const &'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(460): note: see declaration of 'c10::optionalcaffe2::TypeMeta::contained_val'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(466): error C2373: 'c10::optionalcaffe2::TypeMeta::contained_val': redefinition; different type modifiers
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(460): note: see declaration of 'c10::optionalcaffe2::TypeMeta::contained_val'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/ScalarTypeToTypeMeta.h(30): error C2039: 'has_value': is not a member of 'c10::optionalcaffe2::TypeMeta'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/ScalarTypeToTypeMeta.h(29): note: see declaration of 'c10::optionalcaffe2::TypeMeta'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/ScalarTypeToTypeMeta.h(31): error C2440: 'return': cannot convert from 'const c10::nullopt_t' to 'c10::optionalc10::ScalarType'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/ScalarTypeToTypeMeta.h(31): note: No constructor could take the source type, or constructor overload resolution was ambiguous
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/ScalarTypeToTypeMeta.h(33): error C2819: type 'c10::optionalcaffe2::TypeMeta' does not have an overloaded member 'operator ->'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/ScalarTypeToTypeMeta.h(29): note: see declaration of 'c10::optionalcaffe2::TypeMeta'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/ScalarTypeToTypeMeta.h(33): note: did you intend to use '.' instead?
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/ScalarTypeToTypeMeta.h(33): error C2039: 'toScalarType': is not a member of 'c10::optionalcaffe2::TypeMeta'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/ScalarTypeToTypeMeta.h(29): note: see declaration of 'c10::optionalcaffe2::TypeMeta'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(465): warning C4814: 'c10::optionalc10::Layout::contained_val': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(32): note: see reference to class template instantiation 'c10::optionalc10::Layout' being compiled
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(466): 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:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(460): note: see declaration of 'c10::optionalc10::Layout::contained_val'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(466): error C2373: 'c10::optionalc10::Layout::contained_val': redefinition; different type modifiers
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(460): note: see declaration of 'c10::optionalc10::Layout::contained_val'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(33): error C2039: 'value_or': is not a member of 'c10::optionalc10::Layout'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(22): note: see declaration of 'c10::optionalc10::Layout'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(465): warning C4814: 'c10::optionalc10::Device::contained_val': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(36): note: see reference to class template instantiation 'c10::optionalc10::Device' being compiled
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(466): 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:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(460): note: see declaration of 'c10::optionalc10::Device::contained_val'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(466): error C2373: 'c10::optionalc10::Device::contained_val': redefinition; different type modifiers
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(460): note: see declaration of 'c10::optionalc10::Device::contained_val'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(465): warning C4814: 'c10::optional::contained_val': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(40): note: see reference to class template instantiation 'c10::optional' being compiled
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(466): error C2556: 'bool &c10::optional::contained_val(void) const &': overloaded function differs only by return type from 'const bool &c10::optional::contained_val(void) const &'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(460): note: see declaration of 'c10::optional::contained_val'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(466): error C2373: 'c10::optional::contained_val': redefinition; different type modifiers
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(460): note: see declaration of 'c10::optional::contained_val'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(41): error C2039: 'value_or': is not a member of 'c10::optional'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(40): note: see declaration of 'c10::optional'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(141): error C2664: 'void c10::TensorOptions::set_layout(c10::optionalc10::Layout) noexcept &': cannot convert argument 1 from 'c10::Layout' to 'c10::optionalc10::Layout'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(141): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(167): error C2664: 'void c10::TensorOptions::set_dtype(c10::optionalc10::ScalarType) noexcept &': cannot convert argument 1 from 'caffe2::TypeMeta' to 'c10::optionalcaffe2::TypeMeta'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(167): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(172): error C2664: 'void c10::TensorOptions::set_dtype(c10::optionalc10::ScalarType) noexcept &': cannot convert argument 1 from 'c10::ScalarType' to 'c10::optionalcaffe2::TypeMeta'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(172): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(465): warning C4814: 'c10::optionalc10::MemoryFormat::contained_val': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(177): note: see reference to class template instantiation 'c10::optionalc10::MemoryFormat' being compiled
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(466): 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:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(460): note: see declaration of 'c10::optionalc10::MemoryFormat::contained_val'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(466): error C2373: 'c10::optionalc10::MemoryFormat::contained_val': redefinition; different type modifiers
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(460): note: see declaration of 'c10::optionalc10::MemoryFormat::contained_val'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(177): error C2664: 'void c10::TensorOptions::set_memory_format(c10::optionalc10::MemoryFormat) noexcept &': cannot convert argument 1 from 'c10::MemoryFormat' to 'c10::optionalc10::MemoryFormat'
D:\Qiuyu\anaconda\envs\torch-py38\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:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(268): error C2446: ':': no conversion from 'const c10::nullopt_t' to 'c10::optionalc10::Device'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(268): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(289): error C2446: ':': no conversion from 'const c10::nullopt_t' to 'c10::optionalcaffe2::TypeMeta'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(289): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(305): error C2446: ':': no conversion from 'const c10::nullopt_t' to 'c10::optionalc10::Layout'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(305): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(322): error C2446: ':': no conversion from 'const c10::nullopt_t' to 'c10::optional'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(322): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(348): error C2446: ':': no conversion from 'const c10::nullopt_t' to 'c10::optional'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(348): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(362): error C2446: ':': no conversion from 'const c10::nullopt_t' to 'c10::optionalc10::MemoryFormat'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(362): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(396): error C2039: 'has_value': is not a member of 'c10::optionalc10::MemoryFormat'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(249): note: see declaration of 'c10::optionalc10::MemoryFormat'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(397): error C2100: illegal indirection
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(427): error C2451: conditional expression of type 'c10::optionalc10::Device' is illegal
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(427): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(428): error C2100: illegal indirection
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(437): error C2451: conditional expression of type 'c10::optionalcaffe2::TypeMeta' is illegal
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(437): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(438): error C2100: illegal indirection
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(447): error C2451: conditional expression of type 'c10::optionalc10::ScalarType' is illegal
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(447): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(448): error C2100: illegal indirection
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(457): error C2451: conditional expression of type 'c10::optionalc10::Layout' is illegal
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(457): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(458): error C2100: illegal indirection
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(458): error C2440: '=': cannot convert from 'c10::optionalc10::Layout' to 'c10::Layout'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(458): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(467): error C2451: conditional expression of type 'c10::optional' is illegal
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(467): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(468): error C2100: illegal indirection
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(468): error C2440: '=': cannot convert from 'c10::optional' to 'bool'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(468): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(477): error C2451: conditional expression of type 'c10::optional' is illegal
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(477): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(478): error C2100: illegal indirection
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(478): error C2440: '=': cannot convert from 'c10::optional' to 'bool'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(478): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(487): error C2451: conditional expression of type 'c10::optionalc10::MemoryFormat' is illegal
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(487): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(488): error C2100: illegal indirection
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(488): error C2440: '=': cannot convert from 'c10::optionalc10::MemoryFormat' to 'c10::MemoryFormat'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(488): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(536): error C2664: 'caffe2::TypeMeta c10::TensorOptions::dtype(void) noexcept const': cannot convert argument 1 from 'caffe2::TypeMeta' to 'c10::optionalcaffe2::TypeMeta'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(536): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(541): error C2664: 'caffe2::TypeMeta c10::TensorOptions::dtype(void) noexcept const': cannot convert argument 1 from 'caffe2::TypeMeta' to 'c10::optionalcaffe2::TypeMeta'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(541): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(547): error C2664: 'c10::Layout c10::TensorOptions::layout(void) noexcept const': cannot convert argument 1 from 'c10::Layout' to 'c10::optionalc10::Layout'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(547): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(565): error C2664: 'bool c10::TensorOptions::requires_grad(void) noexcept const': cannot convert argument 1 from 'bool' to 'c10::optional'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(565): note: No constructor could take the source type, or constructor overload resolution was ambiguous
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(571): error C2664: 'c10::TensorOptions c10::TensorOptions::memory_format(c10::optionalc10::MemoryFormat) noexcept const': cannot convert argument 1 from 'c10::MemoryFormat' to 'c10::optionalc10::MemoryFormat'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(571): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorImpl.h(551): error C2039: 'has_value': is not a member of 'c10::optionalc10::Device'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(22): note: see declaration of 'c10::optionalc10::Device'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorImpl.h(555): error C2100: illegal indirection
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorImpl.h(555): error C2039: 'index': is not a member of 'c10::optionalc10::Device'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(22): note: see declaration of 'c10::optionalc10::Device'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorImpl.h(559): error C2039: 'has_value': is not a member of 'c10::optionalc10::Device'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(22): note: see declaration of 'c10::optionalc10::Device'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorImpl.h(563): error C2100: illegal indirection
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorImpl.h(1089): error C2039: 'has_value': is not a member of 'c10::optionalc10::Device'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(22): note: see declaration of 'c10::optionalc10::Device'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorImpl.h(1091): error C2100: illegal indirection
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorImpl.h(1091): error C2039: 'type': is not a member of 'c10::optionalc10::Device'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(22): note: see declaration of 'c10::optionalc10::Device'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorImpl.h(1337): error C2679: binary '=': no operator found which takes a right-hand operand of type 'c10::Device' (or there is no acceptable conversion)
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(468): note: could be 'c10::optionalc10::Device &c10::optionalc10::Device::operator =(c10::optionalc10::Device &&)'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(468): note: or 'c10::optionalc10::Device &c10::optionalc10::Device::operator =(const c10::optionalc10::Device &)'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorImpl.h(1337): note: while trying to match the argument list '(c10::optionalc10::Device, c10::Device)'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorImpl.h(1348): error C2679: binary '=': no operator found which takes a right-hand operand of type 'c10::Device' (or there is no acceptable conversion)
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(468): note: could be 'c10::optionalc10::Device &c10::optionalc10::Device::operator =(c10::optionalc10::Device &&)'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(468): note: or 'c10::optionalc10::Device &c10::optionalc10::Device::operator =(const c10::optionalc10::Device &)'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorImpl.h(1348): note: while trying to match the argument list '(c10::optionalc10::Device, c10::Device)'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorImpl.h(1408): error C2679: binary '=': no operator found which takes a right-hand operand of type 'c10::Device' (or there is no acceptable conversion)
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(468): note: could be 'c10::optionalc10::Device &c10::optionalc10::Device::operator =(c10::optionalc10::Device &&)'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(468): note: or 'c10::optionalc10::Device &c10::optionalc10::Device::operator =(const c10::optionalc10::Device &)'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorImpl.h(1408): note: while trying to match the argument list '(c10::optionalc10::Device, c10::Device)'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorImpl.h(1453): error C2679: binary '=': no operator found which takes a right-hand operand of type 'c10::Device' (or there is no acceptable conversion)
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(468): note: could be 'c10::optionalc10::Device &c10::optionalc10::Device::operator =(c10::optionalc10::Device &&)'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(468): note: or 'c10::optionalc10::Device &c10::optionalc10::Device::operator =(const c10::optionalc10::Device &)'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorImpl.h(1453): note: while trying to match the argument list '(c10::optionalc10::Device, c10::Device)'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\ATen/core/DeprecatedTypeProperties.h(95): error C2664: 'caffe2::TypeMeta c10::TensorOptions::dtype(void) noexcept const': cannot convert argument 1 from 'caffe2::TypeMeta' to 'c10::optionalcaffe2::TypeMeta'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\ATen/core/DeprecatedTypeProperties.h(95): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\ATen/core/DeprecatedTypeProperties.h(96): error C2228: left of '.device' must have class/struct/union
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\ATen/core/DeprecatedTypeProperties.h(97): error C2228: left of '.layout' must have class/struct/union
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\ATen/core/DeprecatedTypeProperties.h(103): error C2039: 'has_value': is not a member of 'c10::optionalc10::Device'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(22): note: see declaration of 'c10::optionalc10::Device'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\ATen/core/DeprecatedTypeProperties.h(106): error C2039: 'value': is not a member of 'c10::optionalc10::Device'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/TensorOptions.h(22): note: see declaration of 'c10::optionalc10::Device'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\ATen/core/DeprecatedTypeProperties.h(106): error C2512: 'c10::Device': no appropriate default constructor available
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/Device.h(30): note: see declaration of 'c10::Device'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(465): warning C4814: 'c10::optionalat::TensorList::contained_val': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\ATen/core/TensorBody.h(558): note: see reference to class template instantiation 'c10::optionalat::TensorList' being compiled
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/core/MemoryFormat.h(56): note: see reference to class template instantiation 'c10::ArrayRef<int64_t>' being compiled
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(466): 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:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(460): note: see declaration of 'c10::optionalat::TensorList::contained_val'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(466): error C2373: 'c10::optionalat::TensorList::contained_val': redefinition; different type modifiers
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(460): note: see declaration of 'c10::optionalat::TensorList::contained_val'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\ATen/core/TensorBody.h(558): error C2440: 'default argument': cannot convert from 'const c10::nullopt_t' to 'c10::optionalat::TensorList'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\ATen/core/TensorBody.h(558): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\ATen/core/TensorBody.h(558): error C2440: 'default argument': cannot convert from 'const c10::nullopt_t' to 'c10::optional'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\ATen/core/TensorBody.h(558): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\ATen/core/TensorBody.h(631): error C2440: 'default argument': cannot convert from 'const c10::nullopt_t' to 'c10::optional'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\ATen/core/TensorBody.h(631): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(181): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted
with
[
T=at::Tensor
]
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(361): 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 compiled
with
[
_Ty=c10::trivially_copyable_optimization_optional_baseat::Tensor,
T=at::Tensor
]
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(400): note: see reference to class template instantiation 'std::is_copy_constructible<c10::trivially_copyable_optimization_optional_base>' being compiled
with
[
T=at::Tensor
]
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(418): note: see reference to class template instantiation 'OptionalBaseat::Tensor' being compiled
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\ATen/core/TensorBody.h(631): note: see reference to class template instantiation 'c10::optionalat::Tensor' being compiled
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(387): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted
with
[
T=at::Tensor
]
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(465): warning C4814: 'c10::optionalat::Tensor::contained_val': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(466): error C2556: 'at::Tensor &c10::optionalat::Tensor::contained_val(void) const &': overloaded function differs only by return type from 'const at::Tensor &c10::optionalat::Tensor::contained_val(void) const &'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(460): note: see declaration of 'c10::optionalat::Tensor::contained_val'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(466): error C2373: 'c10::optionalat::Tensor::contained_val': redefinition; different type modifiers
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(460): note: see declaration of 'c10::optionalat::Tensor::contained_val'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(465): warning C4814: 'c10::optional<int64_t>::contained_val': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\ATen/core/TensorBody.h(671): note: see reference to class template instantiation 'c10::optional<int64_t>' being compiled
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(466): error C2556: 'int64_t &c10::optional<int64_t>::contained_val(void) const &': overloaded function differs only by return type from 'const int64_t &c10::optional<int64_t>::contained_val(void) const &'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(460): note: see declaration of 'c10::optional<int64_t>::contained_val'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(466): error C2373: 'c10::optional<int64_t>::contained_val': redefinition; different type modifiers
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(460): note: see declaration of 'c10::optional<int64_t>::contained_val'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\ATen/core/TensorBody.h(671): error C2440: 'default argument': cannot convert from 'const c10::nullopt_t' to 'c10::optional<int64_t>'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\ATen/core/TensorBody.h(671): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\ATen/core/TensorBody.h(672): error C2440: 'default argument': cannot convert from 'const c10::nullopt_t' to 'c10::optional<int64_t>'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\ATen/core/TensorBody.h(672): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\ATen/core/TensorBody.h(685): error C2440: 'default argument': cannot convert from 'const c10::nullopt_t' to 'c10::optional<int64_t>'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\ATen/core/TensorBody.h(685): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\ATen/core/TensorBody.h(686): error C2440: 'default argument': cannot convert from 'const c10::nullopt_t' to 'c10::optional<int64_t>'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\ATen/core/TensorBody.h(686): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(181): warning C4624: 'c10::constexpr_storage_t': destructor was implicitly defined as deleted
with
[
T=at::Generator
]
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(361): note: see reference to class template instantiation 'c10::constexpr_storage_t' being compiled
with
[
T=at::Generator
]
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::Generator
]
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 compiled
with
[
_Ty=c10::trivially_copyable_optimization_optional_baseat::Generator,
T=at::Generator
]
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(400): note: see reference to class template instantiation 'std::is_copy_constructible<c10::trivially_copyable_optimization_optional_base>' being compiled
with
[
T=at::Generator
]
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(418): note: see reference to class template instantiation 'OptionalBaseat::Generator' being compiled
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\ATen/core/TensorBody.h(697): note: see reference to class template instantiation 'c10::optionalat::Generator' being compiled
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(387): warning C4624: 'c10::trivially_copyable_optimization_optional_base': destructor was implicitly defined as deleted
with
[
T=at::Generator
]
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(465): warning C4814: 'c10::optionalat::Generator::contained_val': in C++14 'constexpr' will not imply 'const'; consider explicitly specifying 'const'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(466): error C2556: 'at::Generator &c10::optionalat::Generator::contained_val(void) const &': overloaded function differs only by return type from 'const at::Generator &c10::optionalat::Generator::contained_val(void) const &'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(460): note: see declaration of 'c10::optionalat::Generator::contained_val'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(466): error C2373: 'c10::optionalat::Generator::contained_val': redefinition; different type modifiers
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\c10/util/Optional.h(460): note: see declaration of 'c10::optionalat::Generator::contained_val'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\ATen/core/TensorBody.h(697): error C2440: 'default argument': cannot convert from 'const c10::nullopt_t' to 'c10::optionalat::Generator'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\ATen/core/TensorBody.h(697): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\ATen/core/TensorBody.h(698): error C2440: 'default argument': cannot convert from 'const c10::nullopt_t' to 'c10::optionalat::Generator'
D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\include\ATen/core/TensorBody.h(698): fatal error C1003: error count exceeds 100; stopping compilation
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\utils\cpp_extension.py", line 1667, in _run_ninja_build
subprocess.run(
File "D:\Qiuyu\anaconda\envs\torch-py38\lib\subprocess.py", line 514, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['ninja', '-v', '-j', '8']' 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 4, in
setup(
File "D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\setuptools_init_.py", line 153, in setup
return distutils.core.setup(**attrs)
File "D:\Qiuyu\anaconda\envs\torch-py38\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "D:\Qiuyu\anaconda\envs\torch-py38\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "D:\Qiuyu\anaconda\envs\torch-py38\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\setuptools\command\install.py", line 67, in run
self.do_egg_install()
File "D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\setuptools\command\install.py", line 109, in do_egg_install
self.run_command('bdist_egg')
File "D:\Qiuyu\anaconda\envs\torch-py38\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "D:\Qiuyu\anaconda\envs\torch-py38\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\setuptools\command\bdist_egg.py", line 167, in run
cmd = self.call_command('install_lib', warn_dir=0)
File "D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\setuptools\command\bdist_egg.py", line 153, in call_command
self.run_command(cmdname)
File "D:\Qiuyu\anaconda\envs\torch-py38\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "D:\Qiuyu\anaconda\envs\torch-py38\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\setuptools\command\install_lib.py", line 11, in run
self.build()
File "D:\Qiuyu\anaconda\envs\torch-py38\lib\distutils\command\install_lib.py", line 107, in build
self.run_command('build_ext')
File "D:\Qiuyu\anaconda\envs\torch-py38\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "D:\Qiuyu\anaconda\envs\torch-py38\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\setuptools\command\build_ext.py", line 79, in run
_build_ext.run(self)
File "D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\Cython\Distutils\old_build_ext.py", line 186, in run
_build_ext.build_ext.run(self)
File "D:\Qiuyu\anaconda\envs\torch-py38\lib\distutils\command\build_ext.py", line 340, in run
self.build_extensions()
File "D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\utils\cpp_extension.py", line 708, in build_extensions
build_ext.build_extensions(self)
File "D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\Cython\Distutils\old_build_ext.py", line 195, in build_extensions
_build_ext.build_ext.build_extensions(self)
File "D:\Qiuyu\anaconda\envs\torch-py38\lib\distutils\command\build_ext.py", line 449, in build_extensions
self._build_extensions_serial()
File "D:\Qiuyu\anaconda\envs\torch-py38\lib\distutils\command\build_ext.py", line 474, in _build_extensions_serial
self.build_extension(ext)
File "D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\setuptools\command\build_ext.py", line 196, in build_extension
_build_ext.build_extension(self, ext)
File "D:\Qiuyu\anaconda\envs\torch-py38\lib\distutils\command\build_ext.py", line 528, in build_extension
objects = self.compiler.compile(sources,
File "D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\utils\cpp_extension.py", line 681, in win_wrap_ninja_compile
_write_ninja_file_and_compile_objects(
File "D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\utils\cpp_extension.py", line 1354, in _write_ninja_file_and_compile_objects
_run_ninja_build(
File "D:\Qiuyu\anaconda\envs\torch-py38\lib\site-packages\torch\utils\cpp_extension.py", line 1683, in _run_ninja_build
raise RuntimeError(message) from e
RuntimeError: Error compiling objects for extension`

someone may give me some help?

@namedysx
Copy link

I have a same problem. How to fix it?

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

2 participants