title: Randomly shuffling torch tensor
body: <p>I have a tensor of batch size of 64. Each sample in the batch is of shape <code>[4, 300]</code>. So, shape of my batch is <code>[64, 4, 300]</code>. I want to randomly shuffle the elements of the batch. In other words, I want to shuffle all 64 <code>[4, 300]</code> tensors. How can I do this? The resulting tensor will obviously be of shape <code>[64, 4, 300]</code>, but all the 64 rows of shape <code>[4, 300]</code>, will be ordered differently. </p>