Skip to content
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

haste_tf\libhaste_tf.so not found #23

Open
MichaelJanz opened this issue Jul 13, 2020 · 2 comments
Open

haste_tf\libhaste_tf.so not found #23

MichaelJanz opened this issue Jul 13, 2020 · 2 comments

Comments

@MichaelJanz
Copy link

MichaelJanz commented Jul 13, 2020

Hi, I tried to use haste for tf for testing reccurent_dropout.
However, I got that error message while
import haste_tf as haste

I am using Windows10 and Anaconda. I installed via pip.

Thats the stacktrace:

NotFoundError                             Traceback (most recent call last)
<ipython-input-1-9cc6bdc626a2> in <module>
----> 1 import haste_tf as haste
      2 import tensorflow as tf
      3 
      4 import tensorflow_addons as tfa
      5 from tensorflow import keras

~\anaconda3\envs\tf_nightly_env\lib\site-packages\haste_tf\__init__.py in <module>
     20 
     21 from ._version import __version__  # generated in setup.py
---> 22 from .gru import GRU
     23 from .gru_cell import GRUCell
     24 from .indrnn import IndRNN

~\anaconda3\envs\tf_nightly_env\lib\site-packages\haste_tf\gru.py in <module>
     30 
     31 
---> 32 LIB = tf.load_op_library(pkg_resources.resource_filename(__name__, 'libhaste_tf.so'))
     33 
     34 

~\anaconda3\envs\tf_nightly_env\lib\site-packages\tensorflow\python\framework\load_library.py in load_op_library(library_filename)
     56     RuntimeError: when unable to load the library or get the python wrappers.
     57   """
---> 58   lib_handle = py_tf.TF_LoadLibrary(library_filename)
     59   try:
     60     wrappers = _pywrap_python_op_gen.GetPythonWrappers(
@PraljakReps
Copy link

I have a very similar issue: I am using Windows 10 and an NVIDIA 2080 TI (above the 3.7+ compute capability). I am also using the TensorFlow version 2.3.1.

A better understanding of this issue would be helpful, or a possible solution or workaround would be great! Thanks

@sharvil
Copy link
Contributor

sharvil commented Mar 29, 2021

The short answer is that the binaries on pip don't include Windows libraries so the import fails. You'll have to compile from source, but I can't guarantee that'll work. It was previously not possible to build TensorFlow + Windows + custom ops due to some TF bugs, and I'm not sure if the TF team has since fixed their build issues.

The other options are to use TensorFlow + Linux (if you must use TF) or PyTorch + Windows (if you must use Windows).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants