I am trying to use the tf.nn.deconv2d()
op on a variable-sized batch of data. However, it appears that I need to set the output_shape
argument as follows:
tf.nn.deconv2d(x, filter, output_shape=[12, 24, 24, 5], strides=[1, 2, 2, 1],
padding="SAME")
Why does tf.nn.deconv2d()
take a fixed output_shape
? Is there any way to specify a variable batch dimension? What happens if the input batch size varies?