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
Hi @python-engineer ,
on line 131, shouldn't we assign z again on CPU?
z = z.to("cpu") before then calling z.numpy()
I got following error without doing so:
TypeError: can't convert cuda:0 device type tensor to numpy. Use Tensor.cpu() to copy the tensor to host memory first.
Thanks for all the great material!
Cheers,
Gautam
The text was updated successfully, but these errors were encountered:
Hi @python-engineer ,
on line 131, shouldn't we assign z again on CPU?
z = z.to("cpu") before then calling z.numpy()
I got following error without doing so:
Thanks for all the great material!
Cheers,
Gautam
The text was updated successfully, but these errors were encountered: