Replies: 2 comments 1 reply
-
I think you do not need to put .cpu() becuase they are not torch tensors. But if you share the whole code, I might help better. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Got ya first convert the list of numpy array into a torch.Tensor type like this then try.
or do this:
Or if you want your variable name to be same do this:
use this example to define all your numpy array to a tensor. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am getting the same error even after changing the device settings, can someone help me to rectify this error, (yea, I have tried restarting the notebook as well)
Beta Was this translation helpful? Give feedback.
All reactions