RuntimeError: tensor does not have a device

Hi,

I got the following error:
“RuntimeError: The following operation failed in the TorchScript interpreter.
Traceback of TorchScript (most recent call last):
RuntimeError: tensor does not have a device”

Some of my modules inherit jit.ScriptModule. Torch version:1.10.1

Thanks

Best regards

Could you post a minimal, executable code snippet to reproduce this issue, please?