Which device is model / tensor stored on?

Is there a way to get the device of a module (a torchvision model or criterion) ?

1 Like