Skip to content

Instantly share code, notes, and snippets.

@GeorgeSeif
Created October 14, 2019 00:37
Show Gist options
  • Save GeorgeSeif/17474ea1bd36e5bec419facbc02b355e to your computer and use it in GitHub Desktop.
Save GeorgeSeif/17474ea1bd36e5bec419facbc02b355e to your computer and use it in GitHub Desktop.
train_images = train_images.reshape(60000, 28, 28, 1).astype('float32') / 255.0
test_images = test_images.reshape(10000, 28, 28, 1).astype('float32') / 255.0
train_labels = tf.keras.utils.to_categorical(train_labels, 10)
test_labels = tf.keras.utils.to_categorical(test_labels, 10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment