All Projects → peter1591 → Tensorflow Prebuilt

peter1591 / Tensorflow Prebuilt

Integrate your project with TensorFlow by simply cloning and linking to this prebuilt library. Support Visual Studio and WIndows.

Programming Languages

c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to Tensorflow Prebuilt

Iisexpress Proxy
A simple local proxy for accessing IIS Express from remote machines.
Stars: ✭ 633 (+4421.43%)
Mutual labels:  visual-studio
Croaring
Roaring bitmaps in C (and C++)
Stars: ✭ 735 (+5150%)
Mutual labels:  visual-studio
Pfr
std::tuple like methods for user defined types without any macro or boilerplate code
Stars: ✭ 896 (+6300%)
Mutual labels:  visual-studio
Ipban
IPBan Monitors failed logins and bad behavior and bans ip addresses on Windows and Linux. Highly configurable, lean and powerful. Learn more at -->
Stars: ✭ 652 (+4557.14%)
Mutual labels:  visual-studio
Genie
GENie - Project generator tool
Stars: ✭ 693 (+4850%)
Mutual labels:  visual-studio
Mysqlconnection
Simple library to make it much easier to use MySQL in Visual Studio projects
Stars: ✭ 6 (-57.14%)
Mutual labels:  visual-studio
Vstest
Visual Studio Test Platform is the runner and engine that powers test explorer and vstest.console.
Stars: ✭ 624 (+4357.14%)
Mutual labels:  visual-studio
Chiriboga
Repositorio designado para ser un respaldo del contenido de las clases de Programacion.net II
Stars: ✭ 25 (+78.57%)
Mutual labels:  visual-studio
Project System
The .NET Project System for Visual Studio
Stars: ✭ 703 (+4921.43%)
Mutual labels:  visual-studio
Vs Freemarker
FreeMarker language colorization extension for Visual Studio Code
Stars: ✭ 17 (+21.43%)
Mutual labels:  visual-studio
Public
Repository for wallaby.js questions and issues
Stars: ✭ 662 (+4628.57%)
Mutual labels:  visual-studio
Sakura
SAKURA Editor (Japanese text editor for MS Windows)
Stars: ✭ 689 (+4821.43%)
Mutual labels:  visual-studio
Mappinggenerator
🔄 "AutoMapper" like, Roslyn based, code fix provider that allows to generate mapping code in design time.
Stars: ✭ 831 (+5835.71%)
Mutual labels:  visual-studio
Sqlcetoolbox
SQLite & SQL Server Compact Toolbox extension for Visual Studio, SSMS (and stand alone)
Stars: ✭ 651 (+4550%)
Mutual labels:  visual-studio
Visualstudiorevittemplate
Visual Studio project template for Revit add-in development. (using WPF and MVVM)
Stars: ✭ 22 (+57.14%)
Mutual labels:  visual-studio
Poshtools
PowerShell integration for Visual Studio 2015 and 2017.
Stars: ✭ 626 (+4371.43%)
Mutual labels:  visual-studio
Efcorepowertools
Entity Framework Core Power Tools - reverse engineering, migrations and model visualization for EF Core
Stars: ✭ 774 (+5428.57%)
Mutual labels:  visual-studio
Jpegrtspcamera
Sample RTSP server streaming MJPEG video from PC camera
Stars: ✭ 25 (+78.57%)
Mutual labels:  visual-studio
Builderhmi.lite
.NET Core WPF UI design as quick and intuitive as WinForms! Did you hear that MICROSOFT??
Stars: ✭ 25 (+78.57%)
Mutual labels:  visual-studio
Brainpowerapp
A visual memory training game, a mobile game made with Xamarin for both Android and IOS .
Stars: ✭ 17 (+21.43%)
Mutual labels:  visual-studio

TensorFlow Windows Prebuilt Library

This is a prebuilt TensorFlow library for Windows. Both static and dynamic libraries are pre-built, which can be used to link to your existing Visual Studio projects.

Three simple steps to build a standalone TensorFlow C++ program:

  1. Git clone this project. Git LFS is used to hold large files.
  2. Install Visual Studio 2017 Preview 2.1
  3. Open this example Visual Studio solution. Build, and go!

Enviornment

OS: Windows 10 Compiler: Visual Studio 2017 Preview 2.1

Steps to Build Libraries Manually

Note that: You can skip this by just cloning my prebuilt library. It's much easier

Open a Visual Studio 2017 command prompt (you can find it in start menu)

cd tensorflow/contrib/cmake
mkdir build
cd build

cmake .. -A x64 -DCMAKE_BUILD_TYPE=Release ^
-DSWIG_EXECUTABLE=c:\swigwin-3.0.12\swig.exe ^
-DPYTHON_EXECUTABLE=C:\Users\Peter\AppData\Local\Programs\Python\Python36\python.exe ^
-DPYTHON_LIBRARIES=C:\Users\Peter\AppData\Local\Programs\Python\Python36\libs\python36.lib

If you're using Visual Studio 2017, seems that it needs to invoke x64 compiler:

  1. Open 'tf_core_kernels' project.
  2. Open the property of the project.
  3. Choose configuration to 'All Configurations'
  4. Choose platform to 'x64 (Active)'
  5. Modify $(VC_ExecutablePath_x64) to $(VC_ExecutablePath_x64_x64)

Then, invoke the builder.

MSBuild /p:Configuration=Release ALL_BUILD.vcxproj

This will cost more than one hour, and eat more than 8GB memory. Also make sure you're connected to internet before leaving for a cup of coffee.

Collect Pre-built Libraries

Just execute the collect script to collect them into include and lib folders.

To figure out what's the actual dependencies, one can take a look of the the project tf_tutorials_example_trainer, you can find the linker dependencies in the <AdditionalDependencies> tag:

Release\tf_protos_cc.lib
zlib\install\lib\zlibstatic.lib
gif\install\lib\giflib.lib
png\install\lib\libpng12_static.lib
jpeg\install\lib\libjpeg.lib
lmdb\install\lib\lmdb.lib
jsoncpp\src\jsoncpp\src\lib_json\$(Configuration)\jsoncpp.lib
farmhash\install\lib\farmhash.lib
fft2d\\src\lib\fft2d.lib
highwayhash\install\lib\highwayhash.lib
nsync\install\lib\nsync.lib
protobuf\src\protobuf\$(Configuration)\libprotobuf.lib
re2\src\re2\$(Configuration)\re2.lib
sqlite\install\lib\sqlite.lib
grpc\src\grpc\Release\grpc++_unsecure.lib
grpc\src\grpc\Release\grpc_unsecure.lib
grpc\src\grpc\Release\gpr.lib
snappy\src\snappy\$(Configuration)\snappy.lib

Furthermore, there are object file dependencies described in the cmake file. They're all resolved and collected into the collect script

Build Training Example

Tensorflow has this trainer example to demonstrate the use of C++ API. That demo code is copied under the example, and a working Visual Studio project is located under the example folder.

Just open the Visual Studio project, and you are good to go!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].