-
Notifications
You must be signed in to change notification settings - Fork 74k
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
Tensorflow.loadLibrary() not working on Windows #26468
Comments
@asimshankar Can you PTAL? Thanks! |
Unfortunately, dynamic library loading in Windows is not supported yet AFAIR. @allenlavoie @sjamesr @gunan might have more details on this and might be able to explain what needs to happen to make this possible. |
@meteorcloudy as he helped us a lot with shared objects on windows. |
Dynamically loading shared libraries works in Python on Windows, but I never tired using Java API so it might still be not supported. |
Hi, I am still interested on this issue. Was closed by bot. Still happening. |
I noticed that the |
Yes, the file exists. the error is the same if you make up a file name. The same code works on linux and mac. I am not sure if it should be a .dll. If so, I'd like to know where to get the lstm contrib libs for windows. However, most likely it is a path resolution error, with slashes and backslashes, because I noticed it converts windows slashes to unix ones. |
Hi everyone! I faced with the same problem when I tried to load "tf.contrib" using TensorFlow Java API on Windows (for Linux Ubuntu works fine). |
@asimshankar Can you PTAL? Thanks! |
@sjamesr : Could you take a look? (I haven't been working on TensorFlow for a while now :)) |
Has there been any advance on this? |
Will take a look, sorry for the delay. |
Hi, is this problem resolved ? |
Hi @sjamesr, any updates on the issue? |
@sjamesr, @asimshankar, any updates? |
Hi, this issue is no longer valid since Tensorflow 1.15, given contrib libraries are handled differently. |
@saif-ellafi |
@Saduf2019 I can confirm this issue can be closed. Me and Saif work on the same project and this issue is no longer presents in 1.15.x Many thanks. |
I confirm this can be closed. Thanks |
Running:
TensorFlow.loadLibrary("ner-dl/win/_lstm_ops.so")
Returns:
We're trying to load contrib .so files dynamically from java API. These .so files are generated on Windows by installing tensorflow through pip. Using python 3.6.8 to do so and retrieving them from the library source code. These libraries are from tensorflow.contrib, since this is what we're using on our graphs. To me, this sounds like a path resolving issue, since it's the same error than making up an invented path.
Works fine when using appropriate .so files on Linux and Mac.
Same happens if using absolute paths btw:
It seems this also happened to this poor guy here:
https://stackoverflow.com/questions/50115117/using-ops-from-tensorflow-contrb-on-windows-via-java-api
System information
TensorFlow.loadLibrary("ner-dl/win/_lstm_ops.so")
Windows 10
Binary from pip
b'v1.12.0-rc2-3-ga6d8ffae09' 1.12.0
Using Java API
Describe the current behavior
Running
TensorFlow.loadLibrary("ner-dl/win/_lstm_ops.so")
returns
Describe the expected behavior
Should be able to load libraries dynamically on Windows. This works fine from Linux and Mac.
Code to reproduce the issue
Provide a reproducible test case that is the bare minimum necessary to generate the problem.
TensorFlow.loadLibrary("ner-dl/win/_lstm_ops.so")
The text was updated successfully, but these errors were encountered: