You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/home/zyh/sparse_attention-master/attention.py", line 4, in <module>
from blocksparse import BlocksparseTransformer
File "/root/anaconda3/lib/python3.6/site-packages/blocksparse/__init__.py", line 3, in <module>
from blocksparse.utils import (
File "/root/anaconda3/lib/python3.6/site-packages/blocksparse/utils.py", line 16, in <module>
_op_module = tf.load_op_library(os.path.join(data_files_path, 'blocksparse_ops.so'))
File "/root/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/load_library.py", line 61, in load_op_library
lib_handle = py_tf.TF_LoadLibrary(library_filename)
tensorflow.python.framework.errors_impl.NotFoundError: libtensorflow_framework.so: cannot open shared object file: No such file or directory
I check the libtensorflow_framework.so through find . -name libtensorflow_framework.so , however, it doesn't exist. Next, I find libtensorflow_framework.so1 at /root/anaconda3/lib/python3.6/site-packages/tensorflow/, so I copy the libtensorflow_framework.so1 to the libtensorflow_framework.so, and I append it to LD_LIBRARY_PATH through export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"path/to/your/libtensorflow".
It still not works.
Please help.
Thanks in advance
The text was updated successfully, but these errors were encountered:
I'm fairly certain that you are using a tensorflow version that is too new. See here: tensorflow/tensorflow#30175
Tensorflow changed the name of its shared object file in version 1.14. Maybe 1.13 will work for you, though. You can also install blocksparse from source to avoid this problem. Only Scott or someone from openai can comment on what version of tensorflow the wheel installed by pip was linked against.
My guess is that the SONAME of that file also changed as well, which is why your copying may not be working. I am not sure, though, and won't debug this myself.
I installed tensorflow 1.13.1 and ran the code, but it goes wrong again.
I'm fairly certain that you are using a tensorflow version that is too new. See here: tensorflow/tensorflow#30175
Tensorflow changed the name of its shared object file in version 1.14. Maybe 1.13 will work for you, though. You can also install blocksparse from source to avoid this problem. Only Scott or someone from openai can comment on what version of tensorflow the wheel installed by pip was linked against.
My guess is that the SONAME of that file also changed as well, which is why your copying may not be working. I am not sure, though, and won't debug this myself.
I run the code sparse attention on p100, but it goes wrong.
System information
Here's the traceback
I check the libtensorflow_framework.so through
find . -name libtensorflow_framework.so
, however, it doesn't exist. Next, I find libtensorflow_framework.so1 at/root/anaconda3/lib/python3.6/site-packages/tensorflow/
, so I copy the libtensorflow_framework.so1 to the libtensorflow_framework.so, and I append it to LD_LIBRARY_PATH throughexport LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"path/to/your/libtensorflow".
It still not works.
Please help.
Thanks in advance
The text was updated successfully, but these errors were encountered: