Last answered:

07 Apr 2020

Posted on:

06 Apr 2020

0

Get error using load for tensorflow_datasets in TF2.0.0alpha

mnist_dataset,mnist_info=tfds.load(name='mnist',with_info=True,as_supervised=True)    
AttributeError                            Traceback (most recent call last)
<ipython-input-7-584299b5db27> in <module>
----> 1 mnist_dataset,mnist_info=tfds.load(name='mnist',with_info=True,as_supervised=True)
      2 
      3 #mnist_train,mnist_test=mnist_dataset['train'],mnist_dataset['test']

AttributeError: module 'tensorflow_datasets' has no attribute 'load'
1 answers ( 0 marked as helpful)
Instructor
Posted on:

07 Apr 2020

0
Hi Sundas, When did you install tensorflow-datasets? Is it a fresh installation? I'd suggest that you update it in Anaconda.
pip install --upgrade tensorflow-datasets
to make sure you have the latest version on your computer. Best,
Iliya

Submit an answer