sorry, I didn’t describe my problem clear. W is a Variable containing a torch.Cuda.FloatTensor of size 100, for example. For simplicity let us say W contains 100 elements, i.e., W[0],W[1] …and W[99]. Now I need to produce a new Variable, which contains elements from W, but in a totally different order.  Thank you.