<h2 dir="auto">🐛 Bug</h2>

<p dir="auto">A CRNN model with  [1,1,32, w] input can get correct predict  result in iOS simulator , but when I use iOS device , predict result is no correct.<br>
I have checked the model in ubuntu, Android simulator and Android device. They all no problem.<br>
I am using pod install libtorch=1.5.0.  I  also try 1.4.0 and got same result.<br>
Is there any different between libtorch 1.5.0 x86_64 and arm64 version?</p>
<p dir="auto">My iOS code is based on <a href="https://github.com/pytorch/ios-demo-app/tree/master/HelloWorld">https://github.com/pytorch/ios-demo-app/tree/master/HelloWorld</a><br>
I only modify model and input image shape.</p>
<h2 dir="auto">Environment</h2>
<p dir="auto">XCode 11.4<br>
iOS simulator (predict OK) &amp; iPhone 11 device (predict  NG)<br>
pod install libtorch 1.5.0 &amp; 1.4.0</p>
<p dir="auto">my CRNN model:<br>
<a href="https://drive.google.com/uc?export=download&amp;confirm=WNrX&amp;id=1xb5-icIM1Rpd6f-Aaut1HNDcJfEZuc9X" rel="nofollow">https://drive.google.com/uc?export=download&amp;confirm=WNrX&amp;id=1xb5-icIM1Rpd6f-Aaut1HNDcJfEZuc9X</a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="C:\Users\bhave\pytorch\scripts&gt;build_windows.bat
The system cannot find the drive specified.
Requirement already satisfied: pyyaml in c:\python27\lib\site-packages
You are using pip version 9.0.1, however version 19.1.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
CAFFE2_ROOT=C:\Users\bhave\pytorch\scripts\..
CMAKE_GENERATOR=Visual Studio 16 2019
CMAKE_BUILD_TYPE=Release
cmake -GNinja -DMSVC_Z7_OVERRIDE=False -DBUILDING_WITH_TORCH_LIBS=OFF -DBUILD_BINARY=OFF -DBUILD_PYTHON=False -DBUILD_SHARED_LIBS=OFF -DBUILD_TEST=True -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS=  /EHa -DCMAKE_C_FLAGS=  /EHa -DCMAKE_EXE_LINKER_FLAGS= -DCMAKE_INSTALL_PREFIX=C:\Users\bhave\pytorch\torch -DCMAKE_PREFIX_PATH=C:\Python27\Lib\site-packages -DCMAKE_SHARED_LINKER_FLAGS= -DINSTALL_TEST=True -DNAMEDTENSOR_ENABLED=False -DNCCL_EXTERNAL=False -DNUMPY_INCLUDE_DIR=C:/Python27/lib/site-packages/numpy/core/include -DONNX_NAMESPACE=onnx_c2 -DPYTHON_EXECUTABLE=C:/Python27/python.exe -DPYTHON_INCLUDE_DIR=C:/Python27/include -DUSE_CUDA=False -DUSE_DISTRIBUTED=False -DUSE_FBGEMM=True -DUSE_MKLDNN=True -DUSE_NCCL=False -DUSE_NNPACK=True -DUSE_NUMPY=True -DUSE_OBSERVERS=OFF -DUSE_QNNPACK=True -DUSE_ROCM=False -DUSE_SYSTEM_EIGEN_INSTALL=OFF -DUSE_SYSTEM_NCCL=False -DMKLDNN_ENABLE_CONCURRENT_EXEC=ON C:\Users\bhave\pytorch
-- The CXX compiler identification is MSVC 19.21.27702.2
-- The C compiler identification is MSVC 19.21.27702.2
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.21.27702/bin/Hostx86/x86/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.21.27702/bin/Hostx86/x86/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.21.27702/bin/Hostx86/x86/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.21.27702/bin/Hostx86/x86/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Not forcing any particular BLAS to be found
-- Performing Test COMPILER_WORKS
-- Performing Test COMPILER_WORKS - Success
-- Performing Test SUPPORT_GLIBCXX_USE_C99
-- Performing Test SUPPORT_GLIBCXX_USE_C99 - Success
-- Performing Test CAFFE2_EXCEPTION_PTR_SUPPORTED
-- Performing Test CAFFE2_EXCEPTION_PTR_SUPPORTED - Success
-- std::exception_ptr is supported.
-- Performing Test CAFFE2_IS_NUMA_AVAILABLE
-- Performing Test CAFFE2_IS_NUMA_AVAILABLE - Failed
-- NUMA is not available
-- Performing Test CAFFE2_NEED_TO_TURN_OFF_DEPRECATION_WARNING
-- Performing Test CAFFE2_NEED_TO_TURN_OFF_DEPRECATION_WARNING - Failed
-- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX2_EXTENSIONS
-- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX2_EXTENSIONS - Failed
-- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX512_EXTENSIONS
-- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX512_EXTENSIONS - Success
-- Current compiler supports avx512f extension. Will build fbgemm.
-- Performing Test COMPILER_SUPPORTS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_SUPPORTS_HIDDEN_VISIBILITY - Failed
-- Performing Test COMPILER_SUPPORTS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_SUPPORTS_HIDDEN_INLINE_VISIBILITY - Failed
-- Performing Test COMPILER_SUPPORTS_RDYNAMIC
-- Performing Test COMPILER_SUPPORTS_RDYNAMIC - Failed
-- Building using own protobuf under third_party per request.
-- Use custom protobuf build.
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE
-- Caffe2 protobuf include directory: $&lt;BUILD_INTERFACE:C:/Users/bhave/pytorch/third_party/protobuf/src&gt;$&lt;INSTALL_INTERFACE:include&gt;
-- Trying to find preferred BLAS backend of choice: MKL
-- MKL_THREADING = OMP
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of void*
-- Check size of void* - done
-- MKL_THREADING = OMP
CMake Warning at cmake/Dependencies.cmake:143 (message):
  MKL could not be found.  Defaulting to Eigen
Call Stack (most recent call first):
  CMakeLists.txt:270 (include)


CMake Warning at cmake/Dependencies.cmake:162 (message):
  Preferred BLAS (MKL) cannot be found, now searching for a general BLAS
  library
Call Stack (most recent call first):
  CMakeLists.txt:270 (include)


-- MKL_THREADING = OMP
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - libiomp5md]
--   Library mkl_intel: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core]
--   Library mkl_intel: not found
-- Checking for [mkl_intel - mkl_sequential - mkl_core]
--   Library mkl_intel: not found
-- Checking for [mkl_intel - mkl_core - libiomp5md - pthread]
--   Library mkl_intel: not found
-- Checking for [mkl_intel - mkl_core - pthread]
--   Library mkl_intel: not found
-- Checking for [mkl - guide - pthread - m]
--   Library mkl: not found
-- MKL library not found
-- Checking for [Accelerate]
--   Library Accelerate: BLAS_Accelerate_LIBRARY-NOTFOUND
-- Checking for [vecLib]
--   Library vecLib: BLAS_vecLib_LIBRARY-NOTFOUND
-- Checking for [openblas]
--   Library openblas: BLAS_openblas_LIBRARY-NOTFOUND
-- Checking for [openblas - pthread]
--   Library openblas: BLAS_openblas_LIBRARY-NOTFOUND
-- Checking for [libopenblas]
--   Library libopenblas: BLAS_libopenblas_LIBRARY-NOTFOUND
-- Checking for [goto2 - gfortran]
--   Library goto2: BLAS_goto2_LIBRARY-NOTFOUND
-- Checking for [goto2 - gfortran - pthread]
--   Library goto2: BLAS_goto2_LIBRARY-NOTFOUND
-- Checking for [acml - gfortran]
--   Library acml: BLAS_acml_LIBRARY-NOTFOUND
-- Checking for [ptf77blas - atlas - gfortran]
--   Library ptf77blas: BLAS_ptf77blas_LIBRARY-NOTFOUND
-- Checking for [blas]
--   Library blas: BLAS_blas_LIBRARY-NOTFOUND
-- Cannot find a library with BLAS API. Not using BLAS.
CMake Warning at cmake/Dependencies.cmake:211 (message):
  Target platform &quot;Windows&quot; is not supported in QNNPACK.  Supported platforms
  are Android, iOS, Linux, and macOS.  Turn this warning off by
  USE_QNNPACK=OFF.
Call Stack (most recent call first):
  CMakeLists.txt:270 (include)


CMake Warning at cmake/External/nnpack.cmake:21 (message):
  NNPACK not supported on MSVC yet.  Turn this warning off by USE_NNPACK=OFF.
Call Stack (most recent call first):
  cmake/Dependencies.cmake:279 (include)
  CMakeLists.txt:270 (include)


CMake Warning at cmake/Dependencies.cmake:289 (message):
  Not compiling with NNPACK.  Suppress this warning with -DUSE_NNPACK=OFF
Call Stack (most recent call first):
  CMakeLists.txt:270 (include)


-- Found PythonInterp: C:/Python27/python.exe (found version &quot;2.7.14&quot;)
-- Found Git: C:/Program Files/Git/cmd/git.exe (found version &quot;2.22.0.windows.1&quot;)
-- git Version: v1.4.0-505be96a
-- Version: 1.4.0
-- Performing Test HAVE_STD_REGEX
-- Performing Test HAVE_STD_REGEX
-- Performing Test HAVE_STD_REGEX -- success
-- Performing Test HAVE_GNU_POSIX_REGEX
-- Performing Test HAVE_GNU_POSIX_REGEX
-- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile
-- Performing Test HAVE_POSIX_REGEX
-- Performing Test HAVE_POSIX_REGEX
-- Performing Test HAVE_POSIX_REGEX -- failed to compile
-- Performing Test HAVE_STEADY_CLOCK
-- Performing Test HAVE_STEADY_CLOCK
-- Performing Test HAVE_STEADY_CLOCK -- success
CMake Warning at cmake/Dependencies.cmake:505 (message):
  NUMA is currently only supported under Linux.
Call Stack (most recent call first):
  CMakeLists.txt:270 (include)


-- Downloading PSimd to C:/Users/bhave/pytorch/build/confu-srcs/psimd (define PSIMD_SOURCE_DIR to avoid it)
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/bhave/pytorch/build/confu-deps/psimd-download
[1/6] Performing update step for 'psimd'
Current branch master is up to date.
[2/6] No configure step for 'psimd'
[3/6] No build step for 'psimd'
[4/6] No install step for 'psimd'
[5/6] No test step for 'psimd'
[6/6] Completed 'psimd'
-- Using third party subdirectory Eigen.
-- Could NOT find pybind11 (missing: pybind11_DIR)
-- Could NOT find pybind11 (missing: pybind11_INCLUDE_DIR)
-- Using third_party/pybind11.
-- MKL_THREADING = OMP
-- MKL_THREADING = OMP
-- Adding OpenMP CXX_FLAGS: -openmp:experimental
-- No OpenMP library needs to be linked against
CMake Warning at cmake/Dependencies.cmake:1012 (message):
  Metal is only used in ios builds.
Call Stack (most recent call first):
  CMakeLists.txt:270 (include)


--
-- ******** Summary ********
--   CMake version         : 3.15.0-rc2
--   CMake command         : C:/Users/bhave/bin/cmake.exe
--   System                : Windows
--   C++ compiler          : C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.21.27702/bin/Hostx86/x86/cl.exe
--   C++ compiler version  : 19.21.27702.2
--   CXX flags             :   /EHa -openmp:experimental
--   Build type            : Release
--   Compile definitions   : ONNX_ML=1
--   CMAKE_PREFIX_PATH     : C:\Python27\Lib\site-packages
--   CMAKE_INSTALL_PREFIX  : C:/Users/bhave/pytorch/torch
--   CMAKE_MODULE_PATH     : C:/Users/bhave/pytorch/cmake/Modules
--
--   ONNX version          : 1.5.0
--   ONNX NAMESPACE        : onnx_c2
--   ONNX_BUILD_TESTS      : OFF
--   ONNX_BUILD_BENCHMARKS : OFF
--   ONNX_USE_LITE_PROTO   : OFF
--   ONNXIFI_DUMMY_BACKEND : OFF
--   ONNXIFI_ENABLE_EXT    : OFF
--
--   Protobuf compiler     :
--   Protobuf includes     :
--   Protobuf libraries    :
--   BUILD_ONNX_PYTHON     : OFF
--
-- ******** Summary ********
--   CMake version         : 3.15.0-rc2
--   CMake command         : C:/Users/bhave/bin/cmake.exe
--   System                : Windows
--   C++ compiler          : C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.21.27702/bin/Hostx86/x86/cl.exe
--   C++ compiler version  : 19.21.27702.2
--   CXX flags             :   /EHa -openmp:experimental
--   Build type            : Release
--   Compile definitions   : ONNX_ML=1
--   CMAKE_PREFIX_PATH     : C:\Python27\Lib\site-packages
--   CMAKE_INSTALL_PREFIX  : C:/Users/bhave/pytorch/torch
--   CMAKE_MODULE_PATH     : C:/Users/bhave/pytorch/cmake/Modules
--
--   ONNX version          : 1.4.1
--   ONNX NAMESPACE        : onnx_c2
--   ONNX_BUILD_TESTS      : OFF
--   ONNX_BUILD_BENCHMARKS : OFF
--   ONNX_USE_LITE_PROTO   : OFF
--   ONNXIFI_DUMMY_BACKEND : OFF
--
--   Protobuf compiler     :
--   Protobuf includes     :
--   Protobuf libraries    :
--   BUILD_ONNX_PYTHON     : OFF
-- Could not find CUDA with FP16 support, compiling without torch.CudaHalfTensor
-- Removing -DNDEBUG from compile flags
-- MAGMA not found. Compiling without MAGMA support
-- Could not find hardware support for NEON on this machine.
-- No OMAP3 processor on this machine.
-- No OMAP4 processor on this machine.
-- Looking for cpuid.h
-- Looking for cpuid.h - not found
-- Performing Test NO_GCC_EBX_FPIC_BUG
-- Performing Test NO_GCC_EBX_FPIC_BUG - Failed
-- Performing Test C_HAS_AVX_1
-- Performing Test C_HAS_AVX_1 - Success
-- Performing Test C_HAS_AVX2_1
-- Performing Test C_HAS_AVX2_1 - Failed
-- Performing Test C_HAS_AVX2_2
-- Performing Test C_HAS_AVX2_2 - Failed
-- Performing Test C_HAS_AVX2_3
-- Performing Test C_HAS_AVX2_3 - Failed
-- Performing Test CXX_HAS_AVX_1
-- Performing Test CXX_HAS_AVX_1 - Success
-- Performing Test CXX_HAS_AVX2_1
-- Performing Test CXX_HAS_AVX2_1 - Failed
-- Performing Test CXX_HAS_AVX2_2
-- Performing Test CXX_HAS_AVX2_2 - Failed
-- Performing Test CXX_HAS_AVX2_3
-- Performing Test CXX_HAS_AVX2_3 - Failed
-- AVX compiler support found
-- Performing Test HAS_C11_ATOMICS
-- Performing Test HAS_C11_ATOMICS - Failed
-- Performing Test HAS_MSC_ATOMICS
-- Performing Test HAS_MSC_ATOMICS - Success
-- Performing Test HAS_GCC_ATOMICS
-- Performing Test HAS_GCC_ATOMICS - Failed
-- Atomics: using MSVC intrinsics
-- MKL_THREADING = OMP
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - libiomp5md]
--   Library mkl_intel: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core]
--   Library mkl_intel: not found
-- Checking for [mkl_intel - mkl_sequential - mkl_core]
--   Library mkl_intel: not found
-- Checking for [mkl_intel - mkl_core - libiomp5md - pthread]
--   Library mkl_intel: not found
-- Checking for [mkl_intel - mkl_core - pthread]
--   Library mkl_intel: not found
-- Checking for [mkl - guide - pthread - m]
--   Library mkl: not found
-- MKL library not found
-- Checking for [Accelerate]
--   Library Accelerate: BLAS_Accelerate_LIBRARY-NOTFOUND
-- Checking for [vecLib]
--   Library vecLib: BLAS_vecLib_LIBRARY-NOTFOUND
-- Checking for [openblas]
--   Library openblas: BLAS_openblas_LIBRARY-NOTFOUND
-- Checking for [openblas - pthread]
--   Library openblas: BLAS_openblas_LIBRARY-NOTFOUND
-- Checking for [libopenblas]
--   Library libopenblas: BLAS_libopenblas_LIBRARY-NOTFOUND
-- Checking for [goto2 - gfortran]
--   Library goto2: BLAS_goto2_LIBRARY-NOTFOUND
-- Checking for [goto2 - gfortran - pthread]
--   Library goto2: BLAS_goto2_LIBRARY-NOTFOUND
-- Checking for [acml - gfortran]
--   Library acml: BLAS_acml_LIBRARY-NOTFOUND
-- Checking for [ptf77blas - atlas - gfortran]
--   Library ptf77blas: BLAS_ptf77blas_LIBRARY-NOTFOUND
-- Checking for [blas]
--   Library blas: BLAS_blas_LIBRARY-NOTFOUND
-- Cannot find a library with BLAS API. Not using BLAS.
-- LAPACK requires BLAS
-- Cannot find a library with LAPACK API. Not using LAPACK.
disabling CUDA because NOT USE_CUDA is set
-- CuDNN not found. Compiling without CuDNN support
disabling ROCM because NOT USE_ROCM is set
-- MIOpen not found. Compiling without MIOpen support
-- MKL-DNN needs omp 3+ which is not supported in MSVC so far
CMake Warning at cmake/Dependencies.cmake:1364 (MESSAGE):
  MKLDNN could not be found.
Call Stack (most recent call first):
  CMakeLists.txt:270 (include)


-- Performing Test C_HAS_THREAD
-- Performing Test C_HAS_THREAD - Success
-- don't use NUMA
disabling CUDA because USE_CUDA is set false
-- NCCL operators skipped due to no CUDA support
-- Excluding ideep operators as we are not using ideep
-- Excluding image processing operators due to no opencv
-- Excluding video processing operators due to no opencv
-- MPI operators skipped due to no MPI support
-- pytorch is compiling with OpenMP.
OpenMP CXX_FLAGS: -openmp:experimental.
OpenMP libraries: .
-- Caffe2 is compiling with OpenMP.
OpenMP CXX_FLAGS: -openmp:experimental.
OpenMP libraries: .
-- Using parallel backend: OPENMP
CMake Warning at CMakeLists.txt:483 (message):
  Generated cmake files are only fully tested if one builds with system glog,
  gflags, and protobuf.  Other settings may generate files that are not well
  tested.


CMake Warning at CMakeLists.txt:535 (message):
  Generated cmake files are only available when building shared libs.


--
-- ******** Summary ********
-- General:
--   CMake version         : 3.15.0-rc2
--   CMake command         : C:/Users/bhave/bin/cmake.exe
--   System                : Windows
--   C++ compiler          : C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.21.27702/bin/Hostx86/x86/cl.exe
--   C++ compiler id       : MSVC
--   C++ compiler version  : 19.21.27702.2
--   BLAS                  : MKL
--   CXX flags             :   /EHa -openmp:experimental /MP /bigobj
--   Build type            : Release
--   Compile definitions   : ONNX_ML=1;ONNX_NAMESPACE=onnx_c2;_CRT_SECURE_NO_DEPRECATE=1;USE_MSC_ATOMICS=1
--   CMAKE_PREFIX_PATH     : C:\Python27\Lib\site-packages
--   CMAKE_INSTALL_PREFIX  : C:/Users/bhave/pytorch/torch
--
--   TORCH_VERSION         : 1.1.0
--   CAFFE2_VERSION        : 1.1.0
--   BUILD_CAFFE2_MOBILE   : ON
--   BUILD_ATEN_ONLY       : OFF
--   BUILD_BINARY          : OFF
--   BUILD_CUSTOM_PROTOBUF : ON
--     Protobuf compiler   :
--     Protobuf includes   :
--     Protobuf libraries  :
--   BUILD_DOCS            : OFF
--   BUILD_PYTHON          : False
--   BUILD_CAFFE2_OPS      : ON
--   BUILD_SHARED_LIBS     : OFF
--   BUILD_TEST            : True
--   INTERN_BUILD_MOBILE   :
--   USE_ASAN              : OFF
--   USE_CUDA              : False
--   USE_ROCM              : False
--   USE_EIGEN_FOR_BLAS    : ON
--   USE_FBGEMM            : OFF
--   USE_FFMPEG            : OFF
--   USE_GFLAGS            : OFF
--   USE_GLOG              : OFF
--   USE_LEVELDB           : OFF
--   USE_LITE_PROTO        : OFF
--   USE_LMDB              : OFF
--   USE_METAL             : OFF
--   USE_MKL               : OFF
--   USE_MKLDNN            : OFF
--   USE_NCCL              : False
--   USE_NNPACK            : OFF
--   USE_NUMPY             : True
--   USE_OBSERVERS         : OFF
--   USE_OPENCL            : OFF
--   USE_OPENCV            : OFF
--   USE_OPENMP            : ON
--   USE_TBB               : OFF
--   USE_PROF              : OFF
--   USE_QNNPACK           : OFF
--   USE_REDIS             : OFF
--   USE_ROCKSDB           : OFF
--   USE_ZMQ               : OFF
--   USE_DISTRIBUTED       : OFF
--   NAMEDTENSOR_ENABLED   : False
--   Public Dependencies  : Threads::Threads
--   Private Dependencies : cpuinfo;fp16;aten_op_header_gen;foxi_loader
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    MKLDNN_ENABLE_CONCURRENT_EXEC
    NCCL_EXTERNAL
    NUMPY_INCLUDE_DIR
    PYTHON_INCLUDE_DIR


-- Build files have been written to: C:/Users/bhave/pytorch/build
cmake --build . --target install --config Release -- -j 12
[177/1378] Building C object confu-deps\cpuinfo\CMakeFiles\cpuinfo.dir\src\x86\info.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[180/1378] Building C object confu-deps\cpuinfo\CMakeFiles\cpuinfo.dir\src\x86\init.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[181/1378] Building C object confu-deps\cpuinfo\CMakeFiles\cpuinfo.dir\src\x86\vendor.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[182/1378] Building C object confu-deps\cpuinfo\CMakeFiles\cpuinfo.dir\src\x86\uarch.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[184/1378] Building C object confu-deps\cpuinfo\CMakeFiles\cpuinfo.dir\src\x86\name.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[186/1378] Building C object confu-deps\cpuinfo\CMakeFiles\cpuinfo.dir\src\x86\topology.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[187/1378] Building C object confu-deps\cpuinfo\CMakeFiles\cpuinfo.dir\src\init.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[189/1378] Building C object confu-deps\cpuinfo\CMakeFiles\cpuinfo.dir\src\x86\cache\init.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[190/1378] Building C object confu-deps\cpuinfo\CMakeFiles\cpuinfo.dir\src\api.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[191/1378] Building C object confu-deps\cpuinfo\CMakeFiles\cpuinfo.dir\src\x86\cache\descriptor.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[192/1378] Building C object confu-deps\cpuinfo\CMakeFiles\cpuinfo.dir\src\x86\isa.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[193/1378] Building C object confu-deps\cpuinfo\CMakeFiles\cpuinfo.dir\src\x86\cache\deterministic.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[196/1378] Building C object confu-deps\cpuinfo\deps\clog\CMakeFiles\clog.dir\src\clog.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[201/1378] Building C object confu-deps\cpuinfo\CMakeFiles\cpuinfo.dir\src\x86\windows\init.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[204/1378] Building C object third_party\onnx\CMakeFiles\onnxifi_loader.dir\onnx\onnxifi_loader.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[205/1378] Building C object third_party\onnx\CMakeFiles\onnxifi_dummy.dir\onnx\onnxifi_dummy.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
..\third_party\onnx\onnx\onnxifi_dummy.c(173): warning C4113: 'onnxStatus (__stdcall *)(onnxBackendID,const char *,onnxExtensionFunctionPointer *)' differs in parameter lists from 'onnxExtensionFunctionPointer'
..\third_party\onnx\onnx\onnxifi_dummy.c(176): warning C4113: 'onnxStatus (__stdcall *)(onnxGraph,uint32_t,const onnxTensorDescriptorV1 *,uint32_t,const onnxTensorDescriptorV1 *,onnxMemoryFenceV1 *)' differs in parameter lists from 'onnxExtensionFunctionPointer'
[207/1378] Building CXX object third_party\googletest\googlemock\gtest\CMakeFiles\gtest_main.dir\src\gtest_main.cc.obj
cl : Command line warning D9025 : overriding '/EHa' with '/EHs'
[208/1378] Linking C shared module lib\onnxifi.dll
   Creating library lib\onnxifi.lib and object lib\onnxifi.exp
LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
[209/1378] Linking C shared library bin\onnxifi_dummy.dll
   Creating library lib\onnxifi_dummy.lib and object lib\onnxifi_dummy.exp
[210/1378] Building C object third_party\foxi\CMakeFiles\foxi_dummy.dir\foxi\onnxifi_dummy.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[211/1378] Building CXX object third_party\googletest\googlemock\CMakeFiles\gmock_main.dir\src\gmock_main.cc.obj
cl : Command line warning D9025 : overriding '/EHa' with '/EHs'
[213/1378] Linking C shared library bin\foxi_dummy.dll
   Creating library lib\foxi_dummy.lib and object lib\foxi_dummy.exp
[216/1378] Building C object third_party\foxi\CMakeFiles\foxi_loader.dir\foxi\onnxifi_loader.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[218/1378] Building CXX object third_party\googletest\googlemock\CMakeFiles\gmock.dir\src\gmock-all.cc.obj
cl : Command line warning D9025 : overriding '/EHa' with '/EHs'
[219/1378] Building CXX object third_party\googletest\googlemock\CMakeFiles\gmock_main.dir\src\gmock-all.cc.obj
cl : Command line warning D9025 : overriding '/EHa' with '/EHs'
[221/1378] Linking C shared module lib\foxi.dll
   Creating library lib\foxi.lib and object lib\foxi.exp
LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
[227/1378] Building CXX object third_party\googletest\googlemock\CMakeFiles\gmock.dir\__\googletest\src\gtest-all.cc.obj
cl : Command line warning D9025 : overriding '/EHa' with '/EHs'
[231/1378] Building CXX object third_party\googletest\goog...akeFiles\gmock_main.dir\__\googletest\src\gtest-all.cc.obj
cl : Command line warning D9025 : overriding '/EHa' with '/EHs'
[239/1378] Building CXX object third_party\googletest\googlemock\gtest\CMakeFiles\gtest.dir\src\gtest-all.cc.obj
cl : Command line warning D9025 : overriding '/EHa' with '/EHs'
[252/1378] Building CXX object third_party\onnx\CMakeFiles\onnx_proto.dir\onnx\onnx-operators_onnx_c2-ml.pb.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[253/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\object_detection\defs.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[254/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\quantization\defs.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[255/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\rnn\defs.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[256/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\nn\old.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[257/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\rnn\old.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[258/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\reduction\defs.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[259/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\__\__\caffe2\onnx\torch_ops\defs.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[260/1378] Building CXX object third_party\onnx\CMakeFiles\onnx_proto.dir\onnx\onnx_onnx_c2-ml.pb.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[262/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\common\assertions.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[263/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\__\__\caffe2\onnx\torch_ops\schema.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[264/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\tensor\defs.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[265/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\common\status.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[266/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\schema.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[267/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\attr_proto_util.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[268/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\common\interned_strings.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[269/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\common\model_helpers.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[270/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\data_type_utils.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[271/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\function.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[272/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\controlflow\defs.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[273/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\controlflow\old.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[274/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\generator\defs.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[275/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\checker.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[276/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\logical\defs.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[277/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\common\ir_pb_converter.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[278/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\logical\old.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[279/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\tensor_proto_util.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[280/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\generator\old.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[281/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\math\defs.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[282/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\tensor\utils.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[283/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\math\old.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[284/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\traditionalml\old.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[285/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\tensor\old.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[286/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\optimizer\pass.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[287/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\traditionalml\defs.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[288/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\nn\defs.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[290/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\onnxifi_utils.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[294/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\optimizer\pass_manager.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[298/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\version_converter\helper.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[301/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\optimizer\optimize.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[307/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\optimizer\pass_registry.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[315/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\shape_inference\implementation.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[340/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\version_converter\convert.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[549/1378] Building CXX object caffe2\CMakeFiles\torch.dir\__\aten\src\TH\THGeneral.cpp.obj
C:\Users\bhave\pytorch\aten\src\TH\THGeneral.cpp(212) : warning C4717: 'THLog2': recursive on all control paths, function will cause runtime stack overflow
C:\Users\bhave\pytorch\aten\src\TH\THGeneral.cpp(217) : warning C4717: 'THExpm1': recursive on all control paths, function will cause runtime stack overflow
[582/1378] Building CXX object caffe2\CMakeFiles\torch.dir\__\aten\src\TH\THTensorEvenMoreMath.cpp.obj
C:\Users\bhave\pytorch\aten\src\TH/generic/THTensorEvenMoreMath.cpp(410): warning C4804: '+=': unsafe use of type 'bool' in operation
[584/1378] Building CXX object caffe2\CMakeFiles\torch.dir\__\aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp.obj
FAILED: caffe2/CMakeFiles/torch.dir/__/aten/src/ATen/native/cpu/GridSamplerKernel.cpp.AVX.cpp.obj
C:\PROGRA~2\MICROS~4\2019\COMMUN~1\VC\Tools\MSVC\1421~1.277\bin\Hostx86\x86\cl.exe  /nologo /TP -DAT_CORE_STATIC_WINDOWS=1 -DAT_PARALLEL_OPENMP=1 -DCAFFE2_BUILD_MAIN_LIB -DCPUINFO_SUPPORTED_PLATFORM=1 -DONNX_ML=1 -DONNX_NAMESPACE=onnx_c2 -DUSE_MSC_ATOMICS=1 -D_CRT_SECURE_NO_DEPRECATE=1 -D_THP_CORE -I..\aten\src -I. -I..\ -I..\third_party\protobuf\src -I..\cmake\..\third_party\benchmark\include -Icaffe2\contrib\aten -I..\third_party\onnx -Ithird_party\onnx -I..\third_party\foxi -Ithird_party\foxi -I..\caffe2\..\torch\csrc\api -I..\caffe2\..\torch\csrc\api\include -I..\caffe2\aten\src\TH -Icaffe2\aten\src\TH -I..\caffe2\..\torch\..\aten\src -Icaffe2\aten\src -Iaten\src -Icaffe2\..\aten\src -Icaffe2\..\aten\src\ATen -I..\caffe2\..\torch\csrc -I..\caffe2\..\torch\..\third_party\miniz-2.0.8 -I..\aten\src\TH -I..\aten\..\third_party\catch\single_include -I..\aten\src\ATen\.. -Icaffe2\aten\src\ATen -I..\caffe2\core\nomnigraph\include -I..\third_party\miniz-2.0.8 -I..\c10\.. -I..\third_party\cpuinfo\include -I..\third_party\FP16\include -I..\cmake\..\third_party\googletest\googlemock\include -I..\cmake\..\third_party\googletest\googletest\include -I..\cmake\..\third_party\eigen -I..\cmake\..\third_party\pybind11\include -I..\caffe2 /EHa -openmp:experimental /MP /bigobj -DHAVE_AVX_CPU_DEFINITION /MT /O2 /Ob2  /MP /bigobj   -DUSE_GCC_GET_CPUID -DUSE_AVX -DTH_HAVE_THREAD /Zi /EHa /DNOMINMAX /wd4267 /wd4251 /wd4522 /wd4838 /wd4305 /wd4244 /wd4190 /wd4101 /wd4996 /wd4275 /bigobj -DCAFFE2_BUILD_MAIN_LIB -O2 /Ox /fp:strict /arch:AVX /DCPU_CAPABILITY=AVX /DCPU_CAPABILITY_AVX /showIncludes /Focaffe2\CMakeFiles\torch.dir\__\aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp.obj /Fdcaffe2\CMakeFiles\torch.dir\torch.pdb /FS -c aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(620): error C2672: 'convert_to_int_of_same_size': no matching overloaded function found
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(613): note: while compiling class template member function 'void at::native::`anonymous-namespace'::ApplyGridSample&lt;float,2,at::native::detail::GridSamplerInterpolation::Nearest,at::native::detail::GridSamplerPadding::Reflection&gt;::backward(at::TensorAccessor&lt;scalar_t,3,at::DefaultPtrTraits,int64_t&gt; &amp;,at::TensorAccessor&lt;scalar_t,3,at::DefaultPtrTraits,int64_t&gt; &amp;,const at::TensorAccessor&lt;scalar_t,3,at::DefaultPtrTraits,int64_t&gt; &amp;,const at::TensorAccessor&lt;scalar_t,3,at::DefaultPtrTraits,int64_t&gt; &amp;,int64_t,const at::vec256::`anonymous-namespace'::Vec256&lt;scalar_t&gt; &amp;,const at::vec256::`anonymous-namespace'::Vec256&lt;scalar_t&gt; &amp;,int64_t) const'
        with
        [
            scalar_t=float
        ]
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(877): note: see reference to function template instantiation 'void at::native::`anonymous-namespace'::ApplyGridSample&lt;float,2,at::native::detail::GridSamplerInterpolation::Nearest,at::native::detail::GridSamplerPadding::Reflection&gt;::backward(at::TensorAccessor&lt;scalar_t,3,at::DefaultPtrTraits,int64_t&gt; &amp;,at::TensorAccessor&lt;scalar_t,3,at::DefaultPtrTraits,int64_t&gt; &amp;,const at::TensorAccessor&lt;scalar_t,3,at::DefaultPtrTraits,int64_t&gt; &amp;,const at::TensorAccessor&lt;scalar_t,3,at::DefaultPtrTraits,int64_t&gt; &amp;,int64_t,const at::vec256::`anonymous-namespace'::Vec256&lt;scalar_t&gt; &amp;,const at::vec256::`anonymous-namespace'::Vec256&lt;scalar_t&gt; &amp;,int64_t) const' being compiled
        with
        [
            scalar_t=float
        ]
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(822): note: see reference to class template instantiation 'at::native::`anonymous-namespace'::ApplyGridSample&lt;float,2,at::native::detail::GridSamplerInterpolation::Nearest,at::native::detail::GridSamplerPadding::Reflection&gt;' being compiled
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(620): error C2893: Failed to specialize function template 'at::vec256::`anonymous-namespace'::Vec256&lt;int_of_size&lt;sizeof(T)&gt;::type&gt; at::vec256::`anonymous-namespace'::convert_to_int_of_same_size(const at::vec256::`anonymous-namespace'::Vec256&lt;T&gt; &amp;)'
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(620): note: With the following template arguments:
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(620): note: 'T=scalar_t'
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(624): error C3536: 'i_x_nearest': cannot be used before it is initialized
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(624): error C2678: binary '&gt;': no operator found which takes a left-hand operand of type 'int' (or there is no acceptable conversion)
C:\Users\bhave\pytorch\aten\src\ATen/TensorOperators.h(96): note: could be 'at::Tensor at::operator &gt;(c10::Scalar,const at::Tensor &amp;)'
C:\Users\bhave\pytorch\aten\src\ATen/TensorOperators.h(96): note: or       'at::Tensor at::operator &gt;(const at::Tensor &amp;,c10::Scalar)'
C:\Users\bhave\pytorch\aten\src\ATen/TensorOperators.h(96): note: or       'at::Tensor at::operator &gt;(const at::Tensor &amp;,const at::Tensor &amp;)'
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(624): note: while trying to match the argument list '(int, at::vec256::`anonymous-namespace'::Vec256&lt;int&gt;)'
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(624): error C2678: binary '&lt;': no operator found which takes a left-hand operand of type 'int' (or there is no acceptable conversion)
C:\Users\bhave\pytorch\aten\src\ATen/TensorOperators.h(96): note: could be 'at::Tensor at::operator &lt;(c10::Scalar,const at::Tensor &amp;)'
C:\Users\bhave\pytorch\aten\src\ATen/TensorOperators.h(96): note: or       'at::Tensor at::operator &lt;(const at::Tensor &amp;,c10::Scalar)'
C:\Users\bhave\pytorch\aten\src\ATen/TensorOperators.h(96): note: or       'at::Tensor at::operator &lt;(const at::Tensor &amp;,const at::Tensor &amp;)'
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(624): note: while trying to match the argument list '(int, at::vec256::`anonymous-namespace'::Vec256&lt;int&gt;)'
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(627): error C2678: binary '+': no operator found which takes a left-hand operand of type 'at::vec256::`anonymous-namespace'::Vec256&lt;int&gt;' (or there is no acceptable conversion)
C:\Users\bhave\pytorch\aten\src\ATen/TensorOperators.h(96): note: could be 'at::Tensor at::operator +(c10::Scalar,const at::Tensor &amp;)'
C:\Users\bhave\pytorch\aten\src\ATen/TensorOperators.h(96): note: or       'at::Tensor at::operator +(const at::Tensor &amp;,c10::Scalar)'
C:\Users\bhave\pytorch\aten\src\ATen/TensorOperators.h(96): note: or       'at::Tensor at::operator +(const at::Tensor &amp;,const at::Tensor &amp;)'
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(627): note: while trying to match the argument list '(at::vec256::`anonymous-namespace'::Vec256&lt;int&gt;, int)'
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(630): error C3536: 'i_mask': cannot be used before it is initialized
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(632): error C3536: 'i_gInp_offset': cannot be used before it is initialized
[587/1378] Building CXX object caffe2\CMakeFiles\torch.dir\__\aten\src\ATen\native\cpu\IndexKernel.cpp.AVX.cpp.obj
aten\src\ATen\native\cpu\IndexKernel.cpp.AVX.cpp(117): warning C4804: '+=': unsafe use of type 'bool' in operation
[595/1378] Building CXX object caffe2\CMakeFiles\torch.dir\__\aten\src\TH\THTensorMoreMath.cpp.obj
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
  File &quot;tools\build_libtorch.py&quot;, line 23, in &lt;module&gt;
    rerun_cmake=True, cmake_only=False, cmake=CMake('build'))
  File &quot;C:\Users\bhave\pytorch\tools\build_pytorch_libs.py&quot;, line 64, in build_caffe2
    cmake.build(my_env)
  File &quot;C:\Users\bhave\pytorch\tools\setup_helpers\cmake.py&quot;, line 358, in build
    self.run(build_args, my_env)
  File &quot;C:\Users\bhave\pytorch\tools\setup_helpers\cmake.py&quot;, line 110, in run
    check_call(command, cwd=self.build_dir, env=env)
  File &quot;C:\Python27\lib\subprocess.py&quot;, line 186, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--target', 'install', '--config', 'Release', '--', '-j', '12']' returned non-zero exit status 1
&quot;Caffe2 building failed&quot;"><pre class="notranslate"><code class="notranslate">C:\Users\bhave\pytorch\scripts&gt;build_windows.bat
The system cannot find the drive specified.
Requirement already satisfied: pyyaml in c:\python27\lib\site-packages
You are using pip version 9.0.1, however version 19.1.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
CAFFE2_ROOT=C:\Users\bhave\pytorch\scripts\..
CMAKE_GENERATOR=Visual Studio 16 2019
CMAKE_BUILD_TYPE=Release
cmake -GNinja -DMSVC_Z7_OVERRIDE=False -DBUILDING_WITH_TORCH_LIBS=OFF -DBUILD_BINARY=OFF -DBUILD_PYTHON=False -DBUILD_SHARED_LIBS=OFF -DBUILD_TEST=True -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS=  /EHa -DCMAKE_C_FLAGS=  /EHa -DCMAKE_EXE_LINKER_FLAGS= -DCMAKE_INSTALL_PREFIX=C:\Users\bhave\pytorch\torch -DCMAKE_PREFIX_PATH=C:\Python27\Lib\site-packages -DCMAKE_SHARED_LINKER_FLAGS= -DINSTALL_TEST=True -DNAMEDTENSOR_ENABLED=False -DNCCL_EXTERNAL=False -DNUMPY_INCLUDE_DIR=C:/Python27/lib/site-packages/numpy/core/include -DONNX_NAMESPACE=onnx_c2 -DPYTHON_EXECUTABLE=C:/Python27/python.exe -DPYTHON_INCLUDE_DIR=C:/Python27/include -DUSE_CUDA=False -DUSE_DISTRIBUTED=False -DUSE_FBGEMM=True -DUSE_MKLDNN=True -DUSE_NCCL=False -DUSE_NNPACK=True -DUSE_NUMPY=True -DUSE_OBSERVERS=OFF -DUSE_QNNPACK=True -DUSE_ROCM=False -DUSE_SYSTEM_EIGEN_INSTALL=OFF -DUSE_SYSTEM_NCCL=False -DMKLDNN_ENABLE_CONCURRENT_EXEC=ON C:\Users\bhave\pytorch
-- The CXX compiler identification is MSVC 19.21.27702.2
-- The C compiler identification is MSVC 19.21.27702.2
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.21.27702/bin/Hostx86/x86/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.21.27702/bin/Hostx86/x86/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.21.27702/bin/Hostx86/x86/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.21.27702/bin/Hostx86/x86/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Not forcing any particular BLAS to be found
-- Performing Test COMPILER_WORKS
-- Performing Test COMPILER_WORKS - Success
-- Performing Test SUPPORT_GLIBCXX_USE_C99
-- Performing Test SUPPORT_GLIBCXX_USE_C99 - Success
-- Performing Test CAFFE2_EXCEPTION_PTR_SUPPORTED
-- Performing Test CAFFE2_EXCEPTION_PTR_SUPPORTED - Success
-- std::exception_ptr is supported.
-- Performing Test CAFFE2_IS_NUMA_AVAILABLE
-- Performing Test CAFFE2_IS_NUMA_AVAILABLE - Failed
-- NUMA is not available
-- Performing Test CAFFE2_NEED_TO_TURN_OFF_DEPRECATION_WARNING
-- Performing Test CAFFE2_NEED_TO_TURN_OFF_DEPRECATION_WARNING - Failed
-- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX2_EXTENSIONS
-- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX2_EXTENSIONS - Failed
-- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX512_EXTENSIONS
-- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX512_EXTENSIONS - Success
-- Current compiler supports avx512f extension. Will build fbgemm.
-- Performing Test COMPILER_SUPPORTS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_SUPPORTS_HIDDEN_VISIBILITY - Failed
-- Performing Test COMPILER_SUPPORTS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_SUPPORTS_HIDDEN_INLINE_VISIBILITY - Failed
-- Performing Test COMPILER_SUPPORTS_RDYNAMIC
-- Performing Test COMPILER_SUPPORTS_RDYNAMIC - Failed
-- Building using own protobuf under third_party per request.
-- Use custom protobuf build.
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE
-- Caffe2 protobuf include directory: $&lt;BUILD_INTERFACE:C:/Users/bhave/pytorch/third_party/protobuf/src&gt;$&lt;INSTALL_INTERFACE:include&gt;
-- Trying to find preferred BLAS backend of choice: MKL
-- MKL_THREADING = OMP
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of void*
-- Check size of void* - done
-- MKL_THREADING = OMP
CMake Warning at cmake/Dependencies.cmake:143 (message):
  MKL could not be found.  Defaulting to Eigen
Call Stack (most recent call first):
  CMakeLists.txt:270 (include)


CMake Warning at cmake/Dependencies.cmake:162 (message):
  Preferred BLAS (MKL) cannot be found, now searching for a general BLAS
  library
Call Stack (most recent call first):
  CMakeLists.txt:270 (include)


-- MKL_THREADING = OMP
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - libiomp5md]
--   Library mkl_intel: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core]
--   Library mkl_intel: not found
-- Checking for [mkl_intel - mkl_sequential - mkl_core]
--   Library mkl_intel: not found
-- Checking for [mkl_intel - mkl_core - libiomp5md - pthread]
--   Library mkl_intel: not found
-- Checking for [mkl_intel - mkl_core - pthread]
--   Library mkl_intel: not found
-- Checking for [mkl - guide - pthread - m]
--   Library mkl: not found
-- MKL library not found
-- Checking for [Accelerate]
--   Library Accelerate: BLAS_Accelerate_LIBRARY-NOTFOUND
-- Checking for [vecLib]
--   Library vecLib: BLAS_vecLib_LIBRARY-NOTFOUND
-- Checking for [openblas]
--   Library openblas: BLAS_openblas_LIBRARY-NOTFOUND
-- Checking for [openblas - pthread]
--   Library openblas: BLAS_openblas_LIBRARY-NOTFOUND
-- Checking for [libopenblas]
--   Library libopenblas: BLAS_libopenblas_LIBRARY-NOTFOUND
-- Checking for [goto2 - gfortran]
--   Library goto2: BLAS_goto2_LIBRARY-NOTFOUND
-- Checking for [goto2 - gfortran - pthread]
--   Library goto2: BLAS_goto2_LIBRARY-NOTFOUND
-- Checking for [acml - gfortran]
--   Library acml: BLAS_acml_LIBRARY-NOTFOUND
-- Checking for [ptf77blas - atlas - gfortran]
--   Library ptf77blas: BLAS_ptf77blas_LIBRARY-NOTFOUND
-- Checking for [blas]
--   Library blas: BLAS_blas_LIBRARY-NOTFOUND
-- Cannot find a library with BLAS API. Not using BLAS.
CMake Warning at cmake/Dependencies.cmake:211 (message):
  Target platform "Windows" is not supported in QNNPACK.  Supported platforms
  are Android, iOS, Linux, and macOS.  Turn this warning off by
  USE_QNNPACK=OFF.
Call Stack (most recent call first):
  CMakeLists.txt:270 (include)


CMake Warning at cmake/External/nnpack.cmake:21 (message):
  NNPACK not supported on MSVC yet.  Turn this warning off by USE_NNPACK=OFF.
Call Stack (most recent call first):
  cmake/Dependencies.cmake:279 (include)
  CMakeLists.txt:270 (include)


CMake Warning at cmake/Dependencies.cmake:289 (message):
  Not compiling with NNPACK.  Suppress this warning with -DUSE_NNPACK=OFF
Call Stack (most recent call first):
  CMakeLists.txt:270 (include)


-- Found PythonInterp: C:/Python27/python.exe (found version "2.7.14")
-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.22.0.windows.1")
-- git Version: v1.4.0-505be96a
-- Version: 1.4.0
-- Performing Test HAVE_STD_REGEX
-- Performing Test HAVE_STD_REGEX
-- Performing Test HAVE_STD_REGEX -- success
-- Performing Test HAVE_GNU_POSIX_REGEX
-- Performing Test HAVE_GNU_POSIX_REGEX
-- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile
-- Performing Test HAVE_POSIX_REGEX
-- Performing Test HAVE_POSIX_REGEX
-- Performing Test HAVE_POSIX_REGEX -- failed to compile
-- Performing Test HAVE_STEADY_CLOCK
-- Performing Test HAVE_STEADY_CLOCK
-- Performing Test HAVE_STEADY_CLOCK -- success
CMake Warning at cmake/Dependencies.cmake:505 (message):
  NUMA is currently only supported under Linux.
Call Stack (most recent call first):
  CMakeLists.txt:270 (include)


-- Downloading PSimd to C:/Users/bhave/pytorch/build/confu-srcs/psimd (define PSIMD_SOURCE_DIR to avoid it)
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/bhave/pytorch/build/confu-deps/psimd-download
[1/6] Performing update step for 'psimd'
Current branch master is up to date.
[2/6] No configure step for 'psimd'
[3/6] No build step for 'psimd'
[4/6] No install step for 'psimd'
[5/6] No test step for 'psimd'
[6/6] Completed 'psimd'
-- Using third party subdirectory Eigen.
-- Could NOT find pybind11 (missing: pybind11_DIR)
-- Could NOT find pybind11 (missing: pybind11_INCLUDE_DIR)
-- Using third_party/pybind11.
-- MKL_THREADING = OMP
-- MKL_THREADING = OMP
-- Adding OpenMP CXX_FLAGS: -openmp:experimental
-- No OpenMP library needs to be linked against
CMake Warning at cmake/Dependencies.cmake:1012 (message):
  Metal is only used in ios builds.
Call Stack (most recent call first):
  CMakeLists.txt:270 (include)


--
-- ******** Summary ********
--   CMake version         : 3.15.0-rc2
--   CMake command         : C:/Users/bhave/bin/cmake.exe
--   System                : Windows
--   C++ compiler          : C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.21.27702/bin/Hostx86/x86/cl.exe
--   C++ compiler version  : 19.21.27702.2
--   CXX flags             :   /EHa -openmp:experimental
--   Build type            : Release
--   Compile definitions   : ONNX_ML=1
--   CMAKE_PREFIX_PATH     : C:\Python27\Lib\site-packages
--   CMAKE_INSTALL_PREFIX  : C:/Users/bhave/pytorch/torch
--   CMAKE_MODULE_PATH     : C:/Users/bhave/pytorch/cmake/Modules
--
--   ONNX version          : 1.5.0
--   ONNX NAMESPACE        : onnx_c2
--   ONNX_BUILD_TESTS      : OFF
--   ONNX_BUILD_BENCHMARKS : OFF
--   ONNX_USE_LITE_PROTO   : OFF
--   ONNXIFI_DUMMY_BACKEND : OFF
--   ONNXIFI_ENABLE_EXT    : OFF
--
--   Protobuf compiler     :
--   Protobuf includes     :
--   Protobuf libraries    :
--   BUILD_ONNX_PYTHON     : OFF
--
-- ******** Summary ********
--   CMake version         : 3.15.0-rc2
--   CMake command         : C:/Users/bhave/bin/cmake.exe
--   System                : Windows
--   C++ compiler          : C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.21.27702/bin/Hostx86/x86/cl.exe
--   C++ compiler version  : 19.21.27702.2
--   CXX flags             :   /EHa -openmp:experimental
--   Build type            : Release
--   Compile definitions   : ONNX_ML=1
--   CMAKE_PREFIX_PATH     : C:\Python27\Lib\site-packages
--   CMAKE_INSTALL_PREFIX  : C:/Users/bhave/pytorch/torch
--   CMAKE_MODULE_PATH     : C:/Users/bhave/pytorch/cmake/Modules
--
--   ONNX version          : 1.4.1
--   ONNX NAMESPACE        : onnx_c2
--   ONNX_BUILD_TESTS      : OFF
--   ONNX_BUILD_BENCHMARKS : OFF
--   ONNX_USE_LITE_PROTO   : OFF
--   ONNXIFI_DUMMY_BACKEND : OFF
--
--   Protobuf compiler     :
--   Protobuf includes     :
--   Protobuf libraries    :
--   BUILD_ONNX_PYTHON     : OFF
-- Could not find CUDA with FP16 support, compiling without torch.CudaHalfTensor
-- Removing -DNDEBUG from compile flags
-- MAGMA not found. Compiling without MAGMA support
-- Could not find hardware support for NEON on this machine.
-- No OMAP3 processor on this machine.
-- No OMAP4 processor on this machine.
-- Looking for cpuid.h
-- Looking for cpuid.h - not found
-- Performing Test NO_GCC_EBX_FPIC_BUG
-- Performing Test NO_GCC_EBX_FPIC_BUG - Failed
-- Performing Test C_HAS_AVX_1
-- Performing Test C_HAS_AVX_1 - Success
-- Performing Test C_HAS_AVX2_1
-- Performing Test C_HAS_AVX2_1 - Failed
-- Performing Test C_HAS_AVX2_2
-- Performing Test C_HAS_AVX2_2 - Failed
-- Performing Test C_HAS_AVX2_3
-- Performing Test C_HAS_AVX2_3 - Failed
-- Performing Test CXX_HAS_AVX_1
-- Performing Test CXX_HAS_AVX_1 - Success
-- Performing Test CXX_HAS_AVX2_1
-- Performing Test CXX_HAS_AVX2_1 - Failed
-- Performing Test CXX_HAS_AVX2_2
-- Performing Test CXX_HAS_AVX2_2 - Failed
-- Performing Test CXX_HAS_AVX2_3
-- Performing Test CXX_HAS_AVX2_3 - Failed
-- AVX compiler support found
-- Performing Test HAS_C11_ATOMICS
-- Performing Test HAS_C11_ATOMICS - Failed
-- Performing Test HAS_MSC_ATOMICS
-- Performing Test HAS_MSC_ATOMICS - Success
-- Performing Test HAS_GCC_ATOMICS
-- Performing Test HAS_GCC_ATOMICS - Failed
-- Atomics: using MSVC intrinsics
-- MKL_THREADING = OMP
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - libiomp5md]
--   Library mkl_intel: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core]
--   Library mkl_intel: not found
-- Checking for [mkl_intel - mkl_sequential - mkl_core]
--   Library mkl_intel: not found
-- Checking for [mkl_intel - mkl_core - libiomp5md - pthread]
--   Library mkl_intel: not found
-- Checking for [mkl_intel - mkl_core - pthread]
--   Library mkl_intel: not found
-- Checking for [mkl - guide - pthread - m]
--   Library mkl: not found
-- MKL library not found
-- Checking for [Accelerate]
--   Library Accelerate: BLAS_Accelerate_LIBRARY-NOTFOUND
-- Checking for [vecLib]
--   Library vecLib: BLAS_vecLib_LIBRARY-NOTFOUND
-- Checking for [openblas]
--   Library openblas: BLAS_openblas_LIBRARY-NOTFOUND
-- Checking for [openblas - pthread]
--   Library openblas: BLAS_openblas_LIBRARY-NOTFOUND
-- Checking for [libopenblas]
--   Library libopenblas: BLAS_libopenblas_LIBRARY-NOTFOUND
-- Checking for [goto2 - gfortran]
--   Library goto2: BLAS_goto2_LIBRARY-NOTFOUND
-- Checking for [goto2 - gfortran - pthread]
--   Library goto2: BLAS_goto2_LIBRARY-NOTFOUND
-- Checking for [acml - gfortran]
--   Library acml: BLAS_acml_LIBRARY-NOTFOUND
-- Checking for [ptf77blas - atlas - gfortran]
--   Library ptf77blas: BLAS_ptf77blas_LIBRARY-NOTFOUND
-- Checking for [blas]
--   Library blas: BLAS_blas_LIBRARY-NOTFOUND
-- Cannot find a library with BLAS API. Not using BLAS.
-- LAPACK requires BLAS
-- Cannot find a library with LAPACK API. Not using LAPACK.
disabling CUDA because NOT USE_CUDA is set
-- CuDNN not found. Compiling without CuDNN support
disabling ROCM because NOT USE_ROCM is set
-- MIOpen not found. Compiling without MIOpen support
-- MKL-DNN needs omp 3+ which is not supported in MSVC so far
CMake Warning at cmake/Dependencies.cmake:1364 (MESSAGE):
  MKLDNN could not be found.
Call Stack (most recent call first):
  CMakeLists.txt:270 (include)


-- Performing Test C_HAS_THREAD
-- Performing Test C_HAS_THREAD - Success
-- don't use NUMA
disabling CUDA because USE_CUDA is set false
-- NCCL operators skipped due to no CUDA support
-- Excluding ideep operators as we are not using ideep
-- Excluding image processing operators due to no opencv
-- Excluding video processing operators due to no opencv
-- MPI operators skipped due to no MPI support
-- pytorch is compiling with OpenMP.
OpenMP CXX_FLAGS: -openmp:experimental.
OpenMP libraries: .
-- Caffe2 is compiling with OpenMP.
OpenMP CXX_FLAGS: -openmp:experimental.
OpenMP libraries: .
-- Using parallel backend: OPENMP
CMake Warning at CMakeLists.txt:483 (message):
  Generated cmake files are only fully tested if one builds with system glog,
  gflags, and protobuf.  Other settings may generate files that are not well
  tested.


CMake Warning at CMakeLists.txt:535 (message):
  Generated cmake files are only available when building shared libs.


--
-- ******** Summary ********
-- General:
--   CMake version         : 3.15.0-rc2
--   CMake command         : C:/Users/bhave/bin/cmake.exe
--   System                : Windows
--   C++ compiler          : C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.21.27702/bin/Hostx86/x86/cl.exe
--   C++ compiler id       : MSVC
--   C++ compiler version  : 19.21.27702.2
--   BLAS                  : MKL
--   CXX flags             :   /EHa -openmp:experimental /MP /bigobj
--   Build type            : Release
--   Compile definitions   : ONNX_ML=1;ONNX_NAMESPACE=onnx_c2;_CRT_SECURE_NO_DEPRECATE=1;USE_MSC_ATOMICS=1
--   CMAKE_PREFIX_PATH     : C:\Python27\Lib\site-packages
--   CMAKE_INSTALL_PREFIX  : C:/Users/bhave/pytorch/torch
--
--   TORCH_VERSION         : 1.1.0
--   CAFFE2_VERSION        : 1.1.0
--   BUILD_CAFFE2_MOBILE   : ON
--   BUILD_ATEN_ONLY       : OFF
--   BUILD_BINARY          : OFF
--   BUILD_CUSTOM_PROTOBUF : ON
--     Protobuf compiler   :
--     Protobuf includes   :
--     Protobuf libraries  :
--   BUILD_DOCS            : OFF
--   BUILD_PYTHON          : False
--   BUILD_CAFFE2_OPS      : ON
--   BUILD_SHARED_LIBS     : OFF
--   BUILD_TEST            : True
--   INTERN_BUILD_MOBILE   :
--   USE_ASAN              : OFF
--   USE_CUDA              : False
--   USE_ROCM              : False
--   USE_EIGEN_FOR_BLAS    : ON
--   USE_FBGEMM            : OFF
--   USE_FFMPEG            : OFF
--   USE_GFLAGS            : OFF
--   USE_GLOG              : OFF
--   USE_LEVELDB           : OFF
--   USE_LITE_PROTO        : OFF
--   USE_LMDB              : OFF
--   USE_METAL             : OFF
--   USE_MKL               : OFF
--   USE_MKLDNN            : OFF
--   USE_NCCL              : False
--   USE_NNPACK            : OFF
--   USE_NUMPY             : True
--   USE_OBSERVERS         : OFF
--   USE_OPENCL            : OFF
--   USE_OPENCV            : OFF
--   USE_OPENMP            : ON
--   USE_TBB               : OFF
--   USE_PROF              : OFF
--   USE_QNNPACK           : OFF
--   USE_REDIS             : OFF
--   USE_ROCKSDB           : OFF
--   USE_ZMQ               : OFF
--   USE_DISTRIBUTED       : OFF
--   NAMEDTENSOR_ENABLED   : False
--   Public Dependencies  : Threads::Threads
--   Private Dependencies : cpuinfo;fp16;aten_op_header_gen;foxi_loader
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    MKLDNN_ENABLE_CONCURRENT_EXEC
    NCCL_EXTERNAL
    NUMPY_INCLUDE_DIR
    PYTHON_INCLUDE_DIR


-- Build files have been written to: C:/Users/bhave/pytorch/build
cmake --build . --target install --config Release -- -j 12
[177/1378] Building C object confu-deps\cpuinfo\CMakeFiles\cpuinfo.dir\src\x86\info.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[180/1378] Building C object confu-deps\cpuinfo\CMakeFiles\cpuinfo.dir\src\x86\init.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[181/1378] Building C object confu-deps\cpuinfo\CMakeFiles\cpuinfo.dir\src\x86\vendor.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[182/1378] Building C object confu-deps\cpuinfo\CMakeFiles\cpuinfo.dir\src\x86\uarch.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[184/1378] Building C object confu-deps\cpuinfo\CMakeFiles\cpuinfo.dir\src\x86\name.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[186/1378] Building C object confu-deps\cpuinfo\CMakeFiles\cpuinfo.dir\src\x86\topology.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[187/1378] Building C object confu-deps\cpuinfo\CMakeFiles\cpuinfo.dir\src\init.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[189/1378] Building C object confu-deps\cpuinfo\CMakeFiles\cpuinfo.dir\src\x86\cache\init.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[190/1378] Building C object confu-deps\cpuinfo\CMakeFiles\cpuinfo.dir\src\api.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[191/1378] Building C object confu-deps\cpuinfo\CMakeFiles\cpuinfo.dir\src\x86\cache\descriptor.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[192/1378] Building C object confu-deps\cpuinfo\CMakeFiles\cpuinfo.dir\src\x86\isa.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[193/1378] Building C object confu-deps\cpuinfo\CMakeFiles\cpuinfo.dir\src\x86\cache\deterministic.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[196/1378] Building C object confu-deps\cpuinfo\deps\clog\CMakeFiles\clog.dir\src\clog.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[201/1378] Building C object confu-deps\cpuinfo\CMakeFiles\cpuinfo.dir\src\x86\windows\init.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[204/1378] Building C object third_party\onnx\CMakeFiles\onnxifi_loader.dir\onnx\onnxifi_loader.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[205/1378] Building C object third_party\onnx\CMakeFiles\onnxifi_dummy.dir\onnx\onnxifi_dummy.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
..\third_party\onnx\onnx\onnxifi_dummy.c(173): warning C4113: 'onnxStatus (__stdcall *)(onnxBackendID,const char *,onnxExtensionFunctionPointer *)' differs in parameter lists from 'onnxExtensionFunctionPointer'
..\third_party\onnx\onnx\onnxifi_dummy.c(176): warning C4113: 'onnxStatus (__stdcall *)(onnxGraph,uint32_t,const onnxTensorDescriptorV1 *,uint32_t,const onnxTensorDescriptorV1 *,onnxMemoryFenceV1 *)' differs in parameter lists from 'onnxExtensionFunctionPointer'
[207/1378] Building CXX object third_party\googletest\googlemock\gtest\CMakeFiles\gtest_main.dir\src\gtest_main.cc.obj
cl : Command line warning D9025 : overriding '/EHa' with '/EHs'
[208/1378] Linking C shared module lib\onnxifi.dll
   Creating library lib\onnxifi.lib and object lib\onnxifi.exp
LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
[209/1378] Linking C shared library bin\onnxifi_dummy.dll
   Creating library lib\onnxifi_dummy.lib and object lib\onnxifi_dummy.exp
[210/1378] Building C object third_party\foxi\CMakeFiles\foxi_dummy.dir\foxi\onnxifi_dummy.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[211/1378] Building CXX object third_party\googletest\googlemock\CMakeFiles\gmock_main.dir\src\gmock_main.cc.obj
cl : Command line warning D9025 : overriding '/EHa' with '/EHs'
[213/1378] Linking C shared library bin\foxi_dummy.dll
   Creating library lib\foxi_dummy.lib and object lib\foxi_dummy.exp
[216/1378] Building C object third_party\foxi\CMakeFiles\foxi_loader.dir\foxi\onnxifi_loader.c.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[218/1378] Building CXX object third_party\googletest\googlemock\CMakeFiles\gmock.dir\src\gmock-all.cc.obj
cl : Command line warning D9025 : overriding '/EHa' with '/EHs'
[219/1378] Building CXX object third_party\googletest\googlemock\CMakeFiles\gmock_main.dir\src\gmock-all.cc.obj
cl : Command line warning D9025 : overriding '/EHa' with '/EHs'
[221/1378] Linking C shared module lib\foxi.dll
   Creating library lib\foxi.lib and object lib\foxi.exp
LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
[227/1378] Building CXX object third_party\googletest\googlemock\CMakeFiles\gmock.dir\__\googletest\src\gtest-all.cc.obj
cl : Command line warning D9025 : overriding '/EHa' with '/EHs'
[231/1378] Building CXX object third_party\googletest\goog...akeFiles\gmock_main.dir\__\googletest\src\gtest-all.cc.obj
cl : Command line warning D9025 : overriding '/EHa' with '/EHs'
[239/1378] Building CXX object third_party\googletest\googlemock\gtest\CMakeFiles\gtest.dir\src\gtest-all.cc.obj
cl : Command line warning D9025 : overriding '/EHa' with '/EHs'
[252/1378] Building CXX object third_party\onnx\CMakeFiles\onnx_proto.dir\onnx\onnx-operators_onnx_c2-ml.pb.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[253/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\object_detection\defs.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[254/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\quantization\defs.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[255/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\rnn\defs.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[256/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\nn\old.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[257/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\rnn\old.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[258/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\reduction\defs.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[259/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\__\__\caffe2\onnx\torch_ops\defs.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[260/1378] Building CXX object third_party\onnx\CMakeFiles\onnx_proto.dir\onnx\onnx_onnx_c2-ml.pb.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[262/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\common\assertions.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[263/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\__\__\caffe2\onnx\torch_ops\schema.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[264/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\tensor\defs.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[265/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\common\status.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[266/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\schema.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[267/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\attr_proto_util.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[268/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\common\interned_strings.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[269/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\common\model_helpers.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[270/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\data_type_utils.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[271/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\function.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[272/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\controlflow\defs.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[273/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\controlflow\old.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[274/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\generator\defs.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[275/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\checker.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[276/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\logical\defs.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[277/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\common\ir_pb_converter.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[278/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\logical\old.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[279/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\tensor_proto_util.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[280/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\generator\old.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[281/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\math\defs.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[282/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\tensor\utils.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[283/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\math\old.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[284/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\traditionalml\old.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[285/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\tensor\old.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[286/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\optimizer\pass.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[287/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\traditionalml\defs.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[288/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\defs\nn\defs.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[290/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\onnxifi_utils.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[294/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\optimizer\pass_manager.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[298/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\version_converter\helper.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[301/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\optimizer\optimize.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[307/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\optimizer\pass_registry.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[315/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\shape_inference\implementation.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[340/1378] Building CXX object third_party\onnx\CMakeFiles\onnx.dir\onnx\version_converter\convert.cc.obj
cl : Command line warning D9025 : overriding '/MD' with '/MT'
[549/1378] Building CXX object caffe2\CMakeFiles\torch.dir\__\aten\src\TH\THGeneral.cpp.obj
C:\Users\bhave\pytorch\aten\src\TH\THGeneral.cpp(212) : warning C4717: 'THLog2': recursive on all control paths, function will cause runtime stack overflow
C:\Users\bhave\pytorch\aten\src\TH\THGeneral.cpp(217) : warning C4717: 'THExpm1': recursive on all control paths, function will cause runtime stack overflow
[582/1378] Building CXX object caffe2\CMakeFiles\torch.dir\__\aten\src\TH\THTensorEvenMoreMath.cpp.obj
C:\Users\bhave\pytorch\aten\src\TH/generic/THTensorEvenMoreMath.cpp(410): warning C4804: '+=': unsafe use of type 'bool' in operation
[584/1378] Building CXX object caffe2\CMakeFiles\torch.dir\__\aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp.obj
FAILED: caffe2/CMakeFiles/torch.dir/__/aten/src/ATen/native/cpu/GridSamplerKernel.cpp.AVX.cpp.obj
C:\PROGRA~2\MICROS~4\2019\COMMUN~1\VC\Tools\MSVC\1421~1.277\bin\Hostx86\x86\cl.exe  /nologo /TP -DAT_CORE_STATIC_WINDOWS=1 -DAT_PARALLEL_OPENMP=1 -DCAFFE2_BUILD_MAIN_LIB -DCPUINFO_SUPPORTED_PLATFORM=1 -DONNX_ML=1 -DONNX_NAMESPACE=onnx_c2 -DUSE_MSC_ATOMICS=1 -D_CRT_SECURE_NO_DEPRECATE=1 -D_THP_CORE -I..\aten\src -I. -I..\ -I..\third_party\protobuf\src -I..\cmake\..\third_party\benchmark\include -Icaffe2\contrib\aten -I..\third_party\onnx -Ithird_party\onnx -I..\third_party\foxi -Ithird_party\foxi -I..\caffe2\..\torch\csrc\api -I..\caffe2\..\torch\csrc\api\include -I..\caffe2\aten\src\TH -Icaffe2\aten\src\TH -I..\caffe2\..\torch\..\aten\src -Icaffe2\aten\src -Iaten\src -Icaffe2\..\aten\src -Icaffe2\..\aten\src\ATen -I..\caffe2\..\torch\csrc -I..\caffe2\..\torch\..\third_party\miniz-2.0.8 -I..\aten\src\TH -I..\aten\..\third_party\catch\single_include -I..\aten\src\ATen\.. -Icaffe2\aten\src\ATen -I..\caffe2\core\nomnigraph\include -I..\third_party\miniz-2.0.8 -I..\c10\.. -I..\third_party\cpuinfo\include -I..\third_party\FP16\include -I..\cmake\..\third_party\googletest\googlemock\include -I..\cmake\..\third_party\googletest\googletest\include -I..\cmake\..\third_party\eigen -I..\cmake\..\third_party\pybind11\include -I..\caffe2 /EHa -openmp:experimental /MP /bigobj -DHAVE_AVX_CPU_DEFINITION /MT /O2 /Ob2  /MP /bigobj   -DUSE_GCC_GET_CPUID -DUSE_AVX -DTH_HAVE_THREAD /Zi /EHa /DNOMINMAX /wd4267 /wd4251 /wd4522 /wd4838 /wd4305 /wd4244 /wd4190 /wd4101 /wd4996 /wd4275 /bigobj -DCAFFE2_BUILD_MAIN_LIB -O2 /Ox /fp:strict /arch:AVX /DCPU_CAPABILITY=AVX /DCPU_CAPABILITY_AVX /showIncludes /Focaffe2\CMakeFiles\torch.dir\__\aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp.obj /Fdcaffe2\CMakeFiles\torch.dir\torch.pdb /FS -c aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(620): error C2672: 'convert_to_int_of_same_size': no matching overloaded function found
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(613): note: while compiling class template member function 'void at::native::`anonymous-namespace'::ApplyGridSample&lt;float,2,at::native::detail::GridSamplerInterpolation::Nearest,at::native::detail::GridSamplerPadding::Reflection&gt;::backward(at::TensorAccessor&lt;scalar_t,3,at::DefaultPtrTraits,int64_t&gt; &amp;,at::TensorAccessor&lt;scalar_t,3,at::DefaultPtrTraits,int64_t&gt; &amp;,const at::TensorAccessor&lt;scalar_t,3,at::DefaultPtrTraits,int64_t&gt; &amp;,const at::TensorAccessor&lt;scalar_t,3,at::DefaultPtrTraits,int64_t&gt; &amp;,int64_t,const at::vec256::`anonymous-namespace'::Vec256&lt;scalar_t&gt; &amp;,const at::vec256::`anonymous-namespace'::Vec256&lt;scalar_t&gt; &amp;,int64_t) const'
        with
        [
            scalar_t=float
        ]
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(877): note: see reference to function template instantiation 'void at::native::`anonymous-namespace'::ApplyGridSample&lt;float,2,at::native::detail::GridSamplerInterpolation::Nearest,at::native::detail::GridSamplerPadding::Reflection&gt;::backward(at::TensorAccessor&lt;scalar_t,3,at::DefaultPtrTraits,int64_t&gt; &amp;,at::TensorAccessor&lt;scalar_t,3,at::DefaultPtrTraits,int64_t&gt; &amp;,const at::TensorAccessor&lt;scalar_t,3,at::DefaultPtrTraits,int64_t&gt; &amp;,const at::TensorAccessor&lt;scalar_t,3,at::DefaultPtrTraits,int64_t&gt; &amp;,int64_t,const at::vec256::`anonymous-namespace'::Vec256&lt;scalar_t&gt; &amp;,const at::vec256::`anonymous-namespace'::Vec256&lt;scalar_t&gt; &amp;,int64_t) const' being compiled
        with
        [
            scalar_t=float
        ]
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(822): note: see reference to class template instantiation 'at::native::`anonymous-namespace'::ApplyGridSample&lt;float,2,at::native::detail::GridSamplerInterpolation::Nearest,at::native::detail::GridSamplerPadding::Reflection&gt;' being compiled
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(620): error C2893: Failed to specialize function template 'at::vec256::`anonymous-namespace'::Vec256&lt;int_of_size&lt;sizeof(T)&gt;::type&gt; at::vec256::`anonymous-namespace'::convert_to_int_of_same_size(const at::vec256::`anonymous-namespace'::Vec256&lt;T&gt; &amp;)'
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(620): note: With the following template arguments:
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(620): note: 'T=scalar_t'
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(624): error C3536: 'i_x_nearest': cannot be used before it is initialized
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(624): error C2678: binary '&gt;': no operator found which takes a left-hand operand of type 'int' (or there is no acceptable conversion)
C:\Users\bhave\pytorch\aten\src\ATen/TensorOperators.h(96): note: could be 'at::Tensor at::operator &gt;(c10::Scalar,const at::Tensor &amp;)'
C:\Users\bhave\pytorch\aten\src\ATen/TensorOperators.h(96): note: or       'at::Tensor at::operator &gt;(const at::Tensor &amp;,c10::Scalar)'
C:\Users\bhave\pytorch\aten\src\ATen/TensorOperators.h(96): note: or       'at::Tensor at::operator &gt;(const at::Tensor &amp;,const at::Tensor &amp;)'
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(624): note: while trying to match the argument list '(int, at::vec256::`anonymous-namespace'::Vec256&lt;int&gt;)'
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(624): error C2678: binary '&lt;': no operator found which takes a left-hand operand of type 'int' (or there is no acceptable conversion)
C:\Users\bhave\pytorch\aten\src\ATen/TensorOperators.h(96): note: could be 'at::Tensor at::operator &lt;(c10::Scalar,const at::Tensor &amp;)'
C:\Users\bhave\pytorch\aten\src\ATen/TensorOperators.h(96): note: or       'at::Tensor at::operator &lt;(const at::Tensor &amp;,c10::Scalar)'
C:\Users\bhave\pytorch\aten\src\ATen/TensorOperators.h(96): note: or       'at::Tensor at::operator &lt;(const at::Tensor &amp;,const at::Tensor &amp;)'
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(624): note: while trying to match the argument list '(int, at::vec256::`anonymous-namespace'::Vec256&lt;int&gt;)'
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(627): error C2678: binary '+': no operator found which takes a left-hand operand of type 'at::vec256::`anonymous-namespace'::Vec256&lt;int&gt;' (or there is no acceptable conversion)
C:\Users\bhave\pytorch\aten\src\ATen/TensorOperators.h(96): note: could be 'at::Tensor at::operator +(c10::Scalar,const at::Tensor &amp;)'
C:\Users\bhave\pytorch\aten\src\ATen/TensorOperators.h(96): note: or       'at::Tensor at::operator +(const at::Tensor &amp;,c10::Scalar)'
C:\Users\bhave\pytorch\aten\src\ATen/TensorOperators.h(96): note: or       'at::Tensor at::operator +(const at::Tensor &amp;,const at::Tensor &amp;)'
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(627): note: while trying to match the argument list '(at::vec256::`anonymous-namespace'::Vec256&lt;int&gt;, int)'
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(630): error C3536: 'i_mask': cannot be used before it is initialized
aten\src\ATen\native\cpu\GridSamplerKernel.cpp.AVX.cpp(632): error C3536: 'i_gInp_offset': cannot be used before it is initialized
[587/1378] Building CXX object caffe2\CMakeFiles\torch.dir\__\aten\src\ATen\native\cpu\IndexKernel.cpp.AVX.cpp.obj
aten\src\ATen\native\cpu\IndexKernel.cpp.AVX.cpp(117): warning C4804: '+=': unsafe use of type 'bool' in operation
[595/1378] Building CXX object caffe2\CMakeFiles\torch.dir\__\aten\src\TH\THTensorMoreMath.cpp.obj
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
  File "tools\build_libtorch.py", line 23, in &lt;module&gt;
    rerun_cmake=True, cmake_only=False, cmake=CMake('build'))
  File "C:\Users\bhave\pytorch\tools\build_pytorch_libs.py", line 64, in build_caffe2
    cmake.build(my_env)
  File "C:\Users\bhave\pytorch\tools\setup_helpers\cmake.py", line 358, in build
    self.run(build_args, my_env)
  File "C:\Users\bhave\pytorch\tools\setup_helpers\cmake.py", line 110, in run
    check_call(command, cwd=self.build_dir, env=env)
  File "C:\Python27\lib\subprocess.py", line 186, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--target', 'install', '--config', 'Release', '--', '-j', '12']' returned non-zero exit status 1
"Caffe2 building failed"
</code></pre></div>