Skip to content

Instantly share code, notes, and snippets.

@eremo2002
eremo2002 / CNN_MNIST
Created March 28, 2018 03:37
Deep Learning
import tensorflow as tf
import time
from tensorflow.examples.tutorials.mnist import input_data
tf.reset_default_graph()
mnist = input_data.read_data_sets("/data/", one_hot=True)
X = tf.placeholder(tf.float32, [None, 28, 28, 1])
Y = tf.placeholder(tf.float32, [None, 10])