Swap tensor axes in TensorFlow without tf.transpose

Viewed 1159

I have a tensor of unknown shape, but it is at least 3 dimensional, i.e. shape=[a, b, c, ...]. I would like to switch dimensions a and b, without knowing how long the tensor is (so I can't use tf.transpose, as suggested in this question)

1 Answers
Related