Skip to content

Instantly share code, notes, and snippets.

@JoshVarty
Last active March 6, 2018 01:02
Embed
What would you like to do?
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