Shared weights in convolutional autoencoder in Tensorflow
<p>In reading about deconvolution, it is often mentioned to use the transpose of the weights when upsampling, but in the few examples in Tensorflow that I can find, this is not the case. Does the transpose happen internally? Which of the following is correct?</p>

<pre><code>tf.nn.conv2d_transpose(matrix, tf.transpose(W1, [1, 0, 2, 3]), ...)

tf.nn.conv2d_transpose(matrix, W1, ...)
</code></pre>