clo-yunhee / pytorch_mingw_cross

pytorch cpu_only cross compiling for mingw64 on linux

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pytorch_mingw

pytorch cpu_only on windows mingw (msys2/win10)

Based on pytorch :

    https://github.com/pytorch/pytorch 

msys2 :

    http://www.msys2.org

pytorch_mingw install :

  win10  cmd  console :
        
    cd pytorch_mingw
    
    md build

    cd build 

    cmake -G "MinGW Makefiles"  .. -DCMAKE_INSTALL_PREFIX="D:\mingw"

    mingw32-make  -j 8 
    
    mingw32-make  install

examples run :

 win10  cmd  console :

   set  PYTHONPATH=D:\mingw\python

   set  PATH=%PATH%;D:\mingw\lib 

   cd  pytorch_mingw\examples

   python  var_back.py


                                                   zhujiangmail@hotmail.com
                                                               
                                                            2020.08.20    

About

pytorch cpu_only cross compiling for mingw64 on linux

License:Other


Languages

Language:C++ 68.7%Language:Python 18.7%Language:Cuda 5.8%Language:C 4.0%Language:CMake 1.3%Language:Objective-C++ 0.5%Language:Assembly 0.3%Language:PureBasic 0.2%Language:Shell 0.2%Language:Metal 0.1%Language:Starlark 0.1%Language:GLSL 0.0%Language:HTML 0.0%Language:Yacc 0.0%Language:Dockerfile 0.0%Language:Batchfile 0.0%Language:Ruby 0.0%Language:CSS 0.0%Language:LLVM 0.0%Language:Objective-C 0.0%Language:PowerShell 0.0%Language:Makefile 0.0%Language:Vim Script 0.0%