2017-10-19 111 views

回答

0

這取決於你打算如何填補它。舉例如下:

# Assuming input is a tensor with shape (?, 28, 28, 1) 
output = tf.pad(input, [[0, 0], [2,2], [2,2], [0,0]]) 
# print(tf.shape(output)) should be (?, 32, 32, 1)