Comments (9)
Have you tried to create a project from a cmake project?
Or try like in example https://wiki.qt.io/How_to_link_to_a_dll
The project visual studio build and run successfully.
from hello_tf_c_api.
Also what version did you download and what is in the folders?
from hello_tf_c_api.
No, I did not use cmake I downloaded the following folder: libtensorflow-cpu-windows-x86_64-1.11.0.zip
I have linked all the dll in my pro file.
I will try to run it on visual studio. I have visual studio 2017 will it work?
from hello_tf_c_api.
With vs2017 work, run cmake to build project
from hello_tf_c_api.
@HackersSpirit You can try folow step:
git clone https://github.com/Neargye/hello_tf_c_api
cd hello_tf_c_api
mkdir build
cd build
cmake -G "Visual Studio 15 2017" -A x64 ..
cmake --build . --config Debug
from hello_tf_c_api.
@Neargye : Sure will try and let you know.
from hello_tf_c_api.
@Neargye how did you configure / run the bazel build for generating the .dll
, .lib
, .exp
, and .def
? I've downloaded the official google release which contains only the .dll
which I'm unable to properly compile with using vs2017, and I've not been able to figure out how to get bazel to build the windows library files
That being said - I've tried replacing my .dll
I downloaded from the google release with your .{dll, lib, exp, def}
and my solution is able to compile so at least i know that's all that's missing.
from hello_tf_c_api.
Ah nevermind - I figured out why my commands to turn the .dll
into .lib
using dumpbin
and such weren't working - my regex to get just the names was missing some of the names :P
from hello_tf_c_api.
@finger563 i use dumpbin too.
from hello_tf_c_api.
Related Issues (20)
- Memory leak during inference with frozen graph HOT 9
- session_run hangs on GPU (libtensorflow-gpu) HOT 4
- question about this library HOT 3
- how to turn off verbose and idle threads?
- GPU dll HOT 5
- cuda_driver.cc:175] Check failed HOT 1
- How to create Tensor of TF_BOOL? HOT 2
- TF_INVALID_ARGUMENT
- Inference is running very slow on CPU HOT 1
- Multiple models inference HOT 4
- 3D input to model returns different output than python HOT 1
- What is this actually doing? HOT 2
- TF_SessionRun with multiple outputs gives Segmentation Fault HOT 5
- TF_INVALID_ARGUMENT HOT 1
- Multiple GPU Inferencing HOT 1
- cmake -G "Unix Makefiles" .. stop HOT 1
- Confine TensorFlow C API not to generate more than one threads
- Import LSTM-Layer: Expected input[1] to be control input
- when i load graph the TF_Code is ‘TF_UNKNOWN’ , why?
- when i load graph the TF_Code is ‘TF_INVALID_ARGUMENT ’ , why?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hello_tf_c_api.