For example, if I have a 2D tensor X, I can do slicing X[:,1:]; if I have a 3D tensor Y, then I can do similar slicing for the last dimension like Y[:,:,1:].
What is the right way to do the slicing when given a tensor Z of unknown dimension? How about a numpy array?
Thanks!