I got part of the answer I was looking for


Yes .type() also has the device information, so ious.device == xy.device


Not sure still, it will be cuda of course but if there are multiple devices I do not know which index will be used