Tensorflow equivalent of Theano's dimshuffle
<p>How can I find the Tensorflow equivalent of Theano's dimshuffle function.</p>

<pre><code>mask = mask.dimshuffle(0, 1, "x")
</code></pre>

<p>I'm doing this I have tried many ways but couldn't find. Thank you :)</p>

<p>You can use <a href="https://www.tensorflow.org/versions/master/api_docs/python/math_ops.html#transpose" rel="nofollow"><code>tf.transpose</code></a>:</p>

<pre><code> mask = tf.transpose(mask, perm=[0, 1])
</code></pre>

python tensorflow deep-learning theano