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

AttributeError: module 'tensorflow' has no attribute 'resource_loader' #39

Open
GregoryVPerry opened this issue Jul 29, 2019 · 4 comments

Comments

@GregoryVPerry
Copy link

GregoryVPerry commented Jul 29, 2019

Ubuntu 18.04 LTS clean install and fully updated, after a pip3 install of tensorflow-gpu and install of blocksparse from source I am getting the following error:

Python 3.6.8 (default, Jan 14 2019, 11:02:34) 
[GCC 8.0.1 20180414 (experimental) [trunk revision 259383]] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import blocksparse
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/gperry/DeepFlight/OpenAI/blocksparse/blocksparse/__init__.py", line 3, in <module>
    from blocksparse.utils import (
  File "/home/gperry/DeepFlight/OpenAI/blocksparse/blocksparse/utils.py", line 15, in <module>
    data_files_path = tf.resource_loader.get_data_files_path()
AttributeError: module 'tensorflow' has no attribute 'resource_loader'
@galina0217
Copy link

Same issue. Is there any solution?

@GregoryVPerry
Copy link
Author

The team is still recuperating from the $1 billion Gates investment hangovers apparently. :)

@dav-ell
Copy link

dav-ell commented Mar 4, 2020

Having this error when trying to run the sparse attention repo. Has the error using both TF 2.1 and 2.0.

@sedrickkeh
Copy link

Try doing tf.compat.v1.resource_loader instead of tf.resource_loader in the utils.py file.

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

4 participants