Error in Video 35. PyTorch Tensors and NumPy #620
xiaolongli
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the video, it is said that when converting between PyTorch tensor NumPy array, they don't share memory. And this is demonstrated by the following:
This is a false proof as
tensor = tensor + 1
doesn't modifytensor
in place. In fact, the following snippet shows that the array does share memory with the tensor:Beta Was this translation helpful? Give feedback.
All reactions