Example of how to calculate the output shape and overcome the difficulties of using tf.nn.conv2d_transpose with unknown batch size (when input.get_shape() is (?, H, W, C) or (?, C, H, W)).
def upconvolution (input, output_channel_size, filter_size_h, filter_size_w,
stride_h, str...