Well, now I have another problem:
"C:\Users\Alex\Repositories\pytorch\build\INSTALL.vcxproj" (default target) (1) ->
"C:\Users\Alex\Repositories\pytorch\build\ALL_BUILD.vcxproj" (default target) (3) ->
"C:\Users\Alex\Repositories\pytorch\build\caffe2\AlgorithmsTest.vcxproj" (default target) (4) ->
"C:\Users\Alex\Repositories\pytorch\build\caffe2\caffe2_gpu.vcxproj" (default target) (21) ->
(CustomBuild target) ->
  Error : Internal Compiler error (codegen): "there was an error in verifying the lgenfe output!" [C:\Users\Alex\Repositories\pytorch\build\caffe2\caffe2_gpu.vcxproj]

    24529 Warning(s)
    1 Error(s)

Time Elapsed 01:08:11.21

C:\Users\Alex\Repositories\pytorch\build>IF ERRORLEVEL 1 exit 1
Failed to run 'tools\build_pytorch_libs.bat --use-cuda --use-nnpack --use-mkldnn --use-qnnpack caffe2'