-
Notifications
You must be signed in to change notification settings - Fork 45.6k
AttributeError: module 'tensorflow' has no attribute 'data' #2879
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
Comments
another: |
Apparently it's part of the core tensorflow API. I've checked my version (1.4.0) and still require tf.contrib.data. Not sure why. See release https://github.com/tensorflow/tensorflow/releases/tag/v1.4.0 |
The arguments accepted by the Dataset.map() transformation have also changed:
I'd check that you have the latest version. In my case, I still need to use the old tf.contrib.data. |
Yes, as @blairjordan mentions, Also check out the differences between the old and new API: @baimin1 does that resolve your issue? |
Does this mean that the config-file named cloud.yml in object_detection/samples/cloud/ should have runtime-version 1.4? This does not seem correct either. Running this with version 1.4 with the above command removes the error with the missing 'data' module, as suggested above. However, it does introduce a new error, something like At least to me, on June 1st 2018, everything works by upgrading to runtime-version 1.5 with From tensorflow/models/research/
Hopefully this works for others, too! |
Closing as the issue is resolved |
under tf 1.4 use tf.contrib.data instead of tf.data |
I had the same issue and reinstalling tf 1.15.0 with conda (conda install tensorflow-gpu==1.15.0) seems to fix the problem. No need to use tf.contrib.data either (tf.data works for me) |
I am using tensorflow version 2.3.0 and facing the same issue. Can anyone tell me what exactly is the fix? |
I faced the same issue and fixed it by: pip install tensorflow-io |
doesn't work for me, unfortunately |
Why runing mnist.py has:
dataset = tf.data.TFRecordDataset([filename])
AttributeError: module 'tensorflow' has no attribute 'data'
My env is ubuntu and a conda installed tensrflow
The text was updated successfully, but these errors were encountered: