Thank you for your answer. So there is no way to do cross compile, right?
I have met many errors while I try to build pytorch on Windows10.
Following this project: https://github.com/Lavender105/DFF
I want to change OS from Linux to Windows10. But this project uses a branch of pytorch which is  ed02619.
To build the specific pytorch branch (ed02619) of a project, I followed this video: https://www.youtube.com/watch?v=sGWLjbn5cgs 1
However, it was failed.
There is the log below:

  
      gist.github.com
  
  
    https://gist.github.com/JANGSOONMYUN/a380e6876122d2cf5c1beb3aaa5d2e65 1
build_error_pytorch.txt
(dff-master) C:\Users\RobotArm\Desktop\Epson Robot Arm\Projects\DFF_project\pytorch-master\pytorch>cuda90.bat
Ninja found, using it to speed up builds
MAGMA_HOME is set. MAGMA will be included in build.
The flags after configuration:
NO_CUDA=
CMAKE_GENERATOR=Ninja
CUDA_PATH=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0
DISTUTILS_USE_SDK=1
Do you wish to continue? (Y/N)
Type input: Y
This file has been truncated. show original