Hi,
Is there any equivalent in torch to indexing with list of slices. The point is to be able to index without depending on the number of dimension. Example with numpy :
>>> x = torch.arange(0, 25).view(5, 5).numpy()
array([[  0.,   1.,   2.,   3.,   4.],
       [  5.,   6.,   7.,   8.,   9.],
       [ 10.,  11.,  12.,  13.,  14.],
       [ 15.,  16.,  17.,  18.,  19.],
       [ 20.,  21.,  22.,  23.,  24.]], dtype=float32)

>>> slicers=[slice(0,2), slice(0,2)]
>>> a[slicers]
array([[ 0.,  1.],
       [ 5.,  6.]], dtype=float32)

Thanks