Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add to_numpy() and as_numpy() methods #5568
Add to_numpy() and as_numpy() methods #5568
Changes from 26 commits
17c5755
48ba107
ae6e931
dc24d3f
6ce6b05
04d7b02
ee34649
552b322
1215e69
af8a1ee
e095bf0
eb7d84d
74c05e3
45245d0
27fc4e5
3e8cb24
f9d6370
50fdf4c
1c94a97
2d07c0f
9673cea
0d624cc
2f1ff46
afd35e2
6d33b35
eae95f5
b90b7e3
f39b301
8b346d3
576ab7b
4ed1dd8
976f89a
7bc5d6f
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this always failing? Should we avoid it until such a protocol actually exists?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That would be my inclination, too.
I can also imagine some other library implementing
to_numpy()
in a weird way, which could cause issues. At the least, there should be a defensive check ofisinstance(data, np.ndarray)
afterwards.