Home > front end >  ModuleNotFoundError: No module named 'tensorflow.examples' (i am just tried now)
ModuleNotFoundError: No module named 'tensorflow.examples' (i am just tried now)

Time:04-02

I have tried lots of times by taking many ways but it doesn't work anyway.

import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_dataput_data

CodePudding user response:

In in tensorflow 2, you don't need turorial package, use:

tf.keras.datasets.mnist.load_data(
    path='mnist.npz'
)

You can read more : enter image description here

  • Related