X = X.transpose(0, 2, 1, 3)