Hi All,
I am getting below compilation error while compiling pytorch on windows 10.
" “C:\Users\user\Desktop\pytorch\build\INSTALL.vcxproj” (default target) (1) ->
“C:\Users\user\Desktop\pytorch\build\ALL_BUILD.vcxproj” (default target) (3) ->
“C:\Users\user\Desktop\pytorch\build\test_api\test_api.vcxproj” (default target) (118) ->
(ClCompile target) ->
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include\xutility(975): error C2665: ‘std::_Idl_distance1’: none of the 2 overloads could convert all the
argument types (compiling source file C:\Users\user\Desktop\pytorch\test\cpp\api\dataloader.cpp) [C:\Users\user\Desktop\pytorch\build\test_api\test_api.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include\xutility(2444): error C2672: ‘_Get_unwrapped_n’: no matching overloaded function found (compiling
source file C:\Users\user\Desktop\pytorch\test\cpp\api\dataloader.cpp) [C:\Users\user\Desktop\pytorch\build\test_api\test_api.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include\xutility(2444): error C2783: ‘auto std::_Get_unwrapped_n(const _Iter &,const _Diff)’: could not d
educe template argument for ‘__formal’ (compiling source file C:\Users\user\Desktop\pytorch\test\cpp\api\dataloader.cpp) [C:\Users\user\Desktop\pytorch\build\test_api\test_api.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include\xutility(2444): error C2789: ‘_UDest’: an object of const-qualified type must be initialized (com
piling source file C:\Users\user\Desktop\pytorch\test\cpp\api\dataloader.cpp) [C:\Users\user\Desktop\pytorch\build\test_api\test_api.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include\xutility(2445): error C3536: ‘_UDest’: cannot be used before it is initialized (compiling source
file C:\Users\user\Desktop\pytorch\test\cpp\api\dataloader.cpp) [C:\Users\user\Desktop\pytorch\build\test_api\test_api.vcxproj]
3414 Warning(s)
5 Error(s) "