@Fugurcali
I think your tensor has a shape(size) [0,0,1,1] and you are trying to access the item in the tensor, let’s say you are trying to access the 1st item,  so the indexing will be something like [0][0][0][1], but since your shape at dim 0 is 0, so even [0][0][0][1] is out of the boundary at dim 0 since the boundary number at dim 0 is shape[0] - 1 == -1 in your case, this is not valid and you get an error.
Can you figure out why you have such tensor with zero shape? [0,0,1,1] is not a valid tensor to index. If this is a valid tensor for you, you should either make it as [1,1], or [1,1,1,1].  A shape [0,0,1,1] to me is not a valid tensor since it does has 1 item based on the shape, so it should be [1,1,1,1] or [1,1].