Skip to content
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

from tensorflow.examples.tutorials.mnist import input_data deprecated #11

Open
GMFranceschini opened this issue Mar 16, 2021 · 0 comments

Comments

@GMFranceschini
Copy link

Hi, thank you for developing AAnet!

While running the tutorial I encountered the following error:

ModuleNotFoundError: No module named 'tensorflow.examples.tutorials'

Apparently, that module containing MNIST is no longer supported.

I was able to solve this with:

mnist = tf.keras.datasets.mnist
(x_train, y_train), (x_test, y_test) = mnist.load_data()

data_all = x_train

data_all = data_all/255
data_all = (data_all * 2) - 1 # norm for tanh

I hope this might be of use,
Best

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant