You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: