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
I made a test on this problem and the time difference on tensor is large (10x). Seems that it needs a fix for the data structure that can be used as an array.
That is for torch to know, maybe torch converts to ndarray and that is just slow. There is nothing about NumPy involvement though, NumPy would allow torch to make it fast in principle through protocols.
Thank you for your response. But pandas and matplotlib both support the data structure having array interface to be handled like array, maybe it only small modification in numpy to convert it and it can boost performance. pandas-dev/pandas#44616, matplotlib/matplotlib#25882
I cannot say about whether torch wants or can do it. But as I said: NumPy provides the protocols (not just __array__). If anyone can do something about it, it's torch and not NumPy.
Describe the issue:
I made a test on this problem and the time difference on tensor is large (10x). Seems that it needs a fix for the data structure that can be used as an array.
Reproduce the code example:
Python and NumPy Versions:
1.26.0
3.9.18 (main, Sep 11 2023, 08:25:10)
[Clang 14.0.6 ]
Runtime Environment:
No response
Context for the issue:
No response
The text was updated successfully, but these errors were encountered: