I want get the data buffer atfer transposed a tensor, however, tensor would not really transpose the tensor(the data in buffer is still the original data sequence).
I use contiguous method to get the transposed data, for 2d tensor, it works well, but for higher dimension(e.g. 3d) tensor, this method not work. So how can i get the transposed data?
// e.g. b is a 3d tensor, how can i get the transposed data? auto a = b.transpose(1, 2);