-
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
Issue with running tensorflow cpp releases #59
Comments
You can use Release build instead of Debug build to see if it resolve this error or not. |
@fo40225 : Exactly which one is the release build. I downloaded suppose tensorflow 1.8 in lib folder i can see tensorflow.lib and tensorflow_static.lib
Error Message: |
Try to link protobuf 3.4.1 lib in your project |
Do I have to download and build it. |
I got tons of link error when I link with |
@fo40225 : Actually i am getting symbol not found issue in the library. It is similar to the issue faced in the libtensorflow_cc.so generated by bazel which is an ongoing issue in the forum. |
@fo40225 : Thanks for the video was very helpful. |
You can check your cpu is avx2 instruction sets supported or not, and you should change the compiler options in your project's property. |
@fo40225 : Actually I thing my cpu supports avx2. Because when i run the program using the pre-build library file it gives following message:2018-12-10 13:53:10.355529: Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2 |
Can't reproduce your error. |
@fo40225 : Just making myself clear. |
@HackersSpirit all build is Release built (in fact, tensorflow will build break in debug mode) press ALT + mouse or arrow key to do column selection (vertical selection, block selection whatever) in most code editor (even in Word) |
Hello,
OS: Windows 10 64-bit
I tried to run the tensorflow program with different versions of tensorflow and getting the similar error all the time:
class std::basic_string<char,struct std::char_traits,class std::allocator > __cdecl tensorflow::Status::ToString(void)const " (?ToString@Status@tensorflow@@qeba?AV?$basic_string@DU?$char_traits@D@std@@v?$allocator@D@2@@std@@xz) referenced in function main
main.obj : error LNK2019: unresolved external symbol "public: virtual __cdecl tensorflow::ConfigProto::~ConfigProto(void)" (??1ConfigProto@tensorflow@@UEAA@XZ) referenced in function "public: __cdecl tensorflow::SessionOptions::~SessionOptions(void)" (??1SessionOptions@tensorflow@@qeaa@XZ)
main.obj : error LNK2019: unresolved external symbol "public: __cdecl tensorflow::SessionOptions::SessionOptions(void)" (??0SessionOptions@tensorflow@@qeaa@XZ) referenced in function main
main.obj : error LNK2019: unresolved external symbol "class tensorflow::Status __cdecl tensorflow::NewSession(struct tensorflow::SessionOptions const &,class tensorflow::Session * )" (?NewSession@tensorflow@@ya?AVStatus@1@AEBUSessionOptions@1@PEAPEAVSession@1@@z) referenced in function main
debug\tensorflowcppNew.exe : fatal error LNK1120: 4 unresolved externals
All the versions give me a linking error:
Please find the sample code that i am trying to run:
Session session;
Status status = NewSession(SessionOptions(), &session);
The text was updated successfully, but these errors were encountered: