blocksparse icon indicating copy to clipboard operation
blocksparse copied to clipboard

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

Open GregoryVPerry opened this issue 5 years ago • 4 comments

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'

GregoryVPerry avatar Jul 29 '19 01:07 GregoryVPerry

Same issue. Is there any solution?

galina0217 avatar Jul 31 '19 05:07 galina0217

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

GregoryVPerry avatar Aug 01 '19 08:08 GregoryVPerry

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

dav-ell avatar Mar 04 '20 15:03 dav-ell

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

sedrickkeh avatar Mar 19 '20 14:03 sedrickkeh