Skip to content

Instantly share code, notes, and snippets.

@JoshVarty

JoshVarty/ltfn_8_1.py

Last active Mar 6, 2018
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