Building TensorFlow.dll 64 bits

Building TensorFlow.dll 64 bits

Postby Antonio Linares » Mon Aug 21, 2017 5:33 am

0. Clone tensorflow repository from GitHub:

git.exe clone "https://github.com/tensorflow/tensorflow" "C:\tensorflow"

1. Go to c:\tensorflow\tensorflow\contrib\cmake

2. Create a build folder

3. cd build and create and run this file:

go.bat
Code: Select all  Expand view
call "%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64
cmake .. -A x64 -DCMAKE_BUILD_TYPE=Release -DSWIG_EXECUTABLE=c:\software\swigwin-3.0.12\swig.exe -DPYTHON_EXECUTABLE=c:\Users\Administrator\appdata\Local\Programs\Python\Python36\python.exe -DPYTHON_LIBRARIES=c:\Users\Administrator\appdata\Local\Programs\Python\Python36\libs\python36.lib -DNUMPY_INCLUDE_DIR=c:\software\numpy-1.13.1\numpy\core\include\numpy
 

Important: Visual Studio Community 2015 is required. It does not work with Visual Studio Community 2017
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Building TensorFlow.dll 64 bits

Postby Antonio Linares » Mon Aug 21, 2017 5:43 am

With this go.bat file also works fine:

go.bat
Code: Select all  Expand view
call "%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64
cmake .. -DSWIG_EXECUTABLE=c:\software\swigwin-3.0.12\swig.exe -DNUMPY_INCLUDE_DIR=c:\software\numpy-1.13.1\numpy\core\include\numpy

c:\tf\tensorflow\contrib\cmake\build>call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64
-- Found SWIG: C:/software/swigwin-3.0.12/swig.exe (found version "3.0.12")
-- Configuring done
-- Generating done
-- Build files have been written to: C:/tf/tensorflow/contrib/cmake/build
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Building TensorFlow.dll 64 bits

Postby Antonio Linares » Mon Aug 21, 2017 5:58 am

Here you have the created files:

https://bitbucket.org/fivetech/tensorflow/downloads/tensorflow_build_files.zip

I have also forked the original TensorFlow project on GitHub and I have commited the created files:

https://github.com/FiveTechSoft/tensorflow/tree/master/tensorflow/contrib/cmake/build
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Building TensorFlow.dll 64 bits

Postby Antonio Linares » Mon Aug 21, 2017 6:06 am

regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to Building TensorFlow.dll

Who is online

Users browsing this forum: No registered users and 0 guests