RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu! (when checking argument for argument weight in method wrapper__prelu)
When I put the 'p' into 'cuda:0' before 'return', like this:
p = p.to_device('cuda:0')
the error also occurred.
When I put the 'p' into cpu, it shows that the model in gpu and it doesn't work.
Issue Description
os.environ['TL_BACKEND'] = 'torch' and using gpu0 When I try to put my model and variable into cuda:
an error occurred here:
RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu! (when checking argument for argument weight in method wrapper__prelu)
When I put the 'p' into 'cuda:0' before 'return', like this:
the error also occurred. When I put the 'p' into cpu, it shows that the model in gpu and it doesn't work.