Hi,
print(tensor.device)
print(model.get_device())

Note that if your model and tensor are on GPU, you will get a output, otherwise it will through and error. They will return the id of the currently being used GPUs.
Bests
Nik