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 great people of numpy. I love you for you amazing work.
I use numpy a lot for debugging pytorch. I am somewhat sure I am not the only one.
Pytorch has a beautiful feature that you can use numpy arrays in pytorch like pytorch tensors. I would love to see that same ability in numpy as well.
for example :
@danFromTelAviv thanks for bringing this up, but NumPy is not really the right place. NumPy knows cannot and must not know anything pytorch. There has been some discussion of implementing np.asarray(tensor, force=True), but for your debugging it would be just the same as using your own little force_array() helper probably.
There is some discussion at PyTorch, and on a NumPy mailing list thread about the np.asarray(tensor, force=True) extension, and pytorch probably will add (or already added) a x.numpy(force=True) to make it less typing for you.
Note that even if force=True argument is added, NumPy functions could not reasonably use it, so it would not actually help in your specific situation.
I am going to close this, but would be very happy to discuss a bit more or if you can weigh in over at PyTorch or the NumPy mailing list!
Hi great people of numpy. I love you for you amazing work.
I use numpy a lot for debugging pytorch. I am somewhat sure I am not the only one.
Pytorch has a beautiful feature that you can use numpy arrays in pytorch like pytorch tensors. I would love to see that same ability in numpy as well.
for example :
really it would just mean hiding away
This would just make the two libraries almost seamless which would be fantastic and would likely advance mankind that much faster.
Thanks,
Dan
The text was updated successfully, but these errors were encountered: