Reputation:
I'm receving a ModuleNotFoundError: No module named 'tensorflow.keras.datasets'
error when running this code:
import tensorflow as tf
from tensorflow.keras.datasets import cifar10
I have tensorflow version 2.2.0
installed and keras 2.2.4
installed so I'm not sure why I'm receiving this particular error.
Shoudn't the tensorflow module encapsulate datasets
?
Upvotes: 1
Views: 5074
Reputation: 447
the TensorFlow documentation has this method listed as the way to load the dataset tf.keras.datasets.cifar10.load_data()
Upvotes: 4