Skip to content

Instantly share code, notes, and snippets.

@JoshVarty
Last active February 10, 2018 04:24
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 JoshVarty/297a7037f82a08197c760f71e2ec6a29 to your computer and use it in GitHub Desktop.
Save JoshVarty/297a7037f82a08197c760f71e2ec6a29 to your computer and use it in GitHub Desktop.
layer1_weights = tf.Variable(tf.random_normal([3, 3, 1, 64])) #3x3x1x64
layer1_bias = tf.Variable(tf.zeros([64])) #64
layer1_conv = tf.nn.conv2d(input, filter=layer1_weights, strides=[1,1,1,1], padding='SAME') #28x28x64
layer1_out = tf.nn.relu(layer1_conv + layer1_bias) #28x28x64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment