Skip to content

Instantly share code, notes, and snippets.

@JoshVarty
Last active March 6, 2018 01:02
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/f433a13d04510a412f35e2a0f51c929e to your computer and use it in GitHub Desktop.
Save JoshVarty/f433a13d04510a412f35e2a0f51c929e to your computer and use it in GitHub Desktop.
input = tf.placeholder(tf.float32, shape=(None, 28, 28, 1)) #28x28x1
padded_input = tf.image.resize_image_with_crop_or_pad(input, target_height=32, target_width=32) #32x32x1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment