Coder Social home page Coder Social logo

kanul / compile-tensorflow-in-window Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 13.34 MB

Python 41.97% C++ 47.18% C 0.38% LLVM 0.01% CMake 0.30% Java 0.62% Makefile 0.08% Objective-C 0.02% Objective-C++ 0.14% Shell 0.72% Jupyter Notebook 3.94% Go 1.68% JavaScript 0.03% HTML 1.25% TypeScript 1.67% CSS 0.01% Batchfile 0.02%

compile-tensorflow-in-window's Introduction

Compile-tensorflow-in-window

Ref1] https://github.com/tensorflow/tensorflow/blob/master/tensorflow/contrib/cmake/README.md

Ref2] http://blog.naver.com/atelierjpro/220830797975

Ref3] http://stackoverflow.com/questions/23497304/vs-2013-and-msbuild

Ref4] http://blog.naver.com/atelierjpro/220830743694

Ref5] http://www.kunal-chowdhury.com/2015/07/download-visualstudio-2015.html#ZqbX2gycoVlEX1g4.97

Recccomand] Apperently my Anti-Virus was the problem. When I turned it off my installation worked.

  1. Pre-requisites

Windows7

CMake version 3.5 or later.

Git

SWIG

Additional pre-requisites for Microsoft Windows:

Visual Studio 2015

Python 3.5

NumPy 1.11.0 or later

  1. Environment variable

F:\Program\Tensorflow\cmake-3.8.1-win64-x64\cmake-3.8.1-win64-x64\bin

  1. Command

(1) Install the pre-requisites detailed above, and set up your environment.

The following commands assume that you are using the Windows Command Prompt (cmd.exe). You will need to set up your environment to use the appropriate toolchain, i.e. the 64-bit tools. (Some of the binary targets we will build are too large for the 32-bit tools, and they will fail with out-of-memory errors.) The typical command to do set up your environment is:

"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"

"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\vcvars64.bat"

(2) Clone the TensorFlow repository and create a working directory for your build:

D:\temp> git clone https://github.com/tensorflow/tensorflow.git

D:\temp> cd tensorflow\tensorflow\contrib\cmake

D:\temp\tensorflow\tensorflow\contrib\cmake> mkdir build

D:\temp\tensorflow\tensorflow\contrib\cmake> cd build

D:\temp\tensorflow\tensorflow\contrib\cmake\build>

(3) Invoke CMake to create Visual Studio solution and project files.

D:...\build> cmake .. -A x64 -DCMAKE_BUILD_TYPE=Release -DSWIG_EXECUTABLE="E:\Program\Tensorflow\swigwin-3.0.10\swigwin-3.0.10\swig.exe" -DPYTHON_EXECUTABLE="C:\Users\kanul\Anaconda3\python.exe" -DPYTHON_LIBRARIES="C:\Users\kanul\Anaconda3\libs\python35.lib"

(4) Invoke MSBuild to build TensorFlow.

To build the C++ example program, which will be created as a .exe executable in the subdirectory .\Release:

D:...\build> MSBuild /p:Configuration=Release tf_tutorials_example_trainer.vcxproj

D:...\build> Release\tf_tutorials_example_trainer.exe

D:...\build> MSBuild /p:Configuration=Release tf_python_build_pip_package.vcxproj

compile-tensorflow-in-window's People

Contributors

kanul avatar kanuleader avatar

Watchers

James Cloos avatar  avatar

Forkers

kanuleader

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.