Skip to content

Instantly share code, notes, and snippets.

@vernwalrahul
Created July 30, 2017 13:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vernwalrahul/0f57caa35a11ac12c8ffcc96be28eb2f to your computer and use it in GitHub Desktop.
Save vernwalrahul/0f57caa35a11ac12c8ffcc96be28eb2f to your computer and use it in GitHub Desktop.
x = tf.placeholder(tf.float32, shape=[None, 784])
y_ = tf.placeholder(tf.float32, shape=[None, 10])
W_conv1 = weight_variable([5, 5, 1, 32])
b_conv1 = bias_variable([32])
x_image = tf.reshape(x, [-1, 28, 28, 1])
h_conv1 = tf.nn.relu(conv2d(x_image, W_conv1) + b_conv1)
h_pool1 = max_pool_2x2(h_conv1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment