-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question(s)] Can you build a C++ standalone shared-lib (no python dep)? #6
Comments
I have not tried to build for x86, maybe I can try to build. |
Build fail, it seems to require some code fix.
|
Because cc_test is broken, it cannot perform a full test. I haven't used tensorflow's C++ API before, this built worked on the sample with target 32-bit exe. Before using it, you should do a complete test yourself. https://github.com/fo40225/tensorflow-windows-wheel/tree/master/1.7.0/cpp Here is the way to build 32bit cpp lib. envwin 10 x64 get source
apply fixadd edit edit
to
buildopen VS2017 x64_x86 Cross Tools Command Prompt
You will get tensorflow libs in |
Thanks for uploading. |
Updated, containing the properly placed header make it looks much better now. |
Perfect! Thank you very much for the quick response and going through the trouble of building it. |
Applied all the fixed but still get the following error:
Interestingly, running the build on TF 1.6.0.rc0 does not generate the error (but compilation fails anyway). |
@miek0tube Try not turn tensorflow_BUILD_PYTHON_BINDINGS OFF, it has some reported issues. |
Yeah, thanks! That worked! |
To my disappointment, running in 32-bit mode is 6-8 times slower! Did you experience the same performance hit? |
@miek0tube |
I don't know if this changes affect perf a lot. https://github.com/tensorflow/tensorflow/blob/v1.9.0/tensorflow/core/common_runtime/bfc_allocator.h#L382 You can help to figure out the root cause. |
I'm porting an image recognition software from Python to C++. It runs as a plugin to another software which is 32-bit C# application. |
Looks like I was partially blind this day. This key - |
Title.
Also, I see that you build with SSE too, does this mean you can build TF as a 32bit binary?
The text was updated successfully, but these errors were encountered: