-
-
Notifications
You must be signed in to change notification settings - Fork 11k
MAINT, DOC: make np._from_dlpack public #21145
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
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
945e0ae
MAINT: make np._from_dlpack public
tirthasheshpatel 492489f
DOC: add the DLPack protocol to interpolability docs
tirthasheshpatel 87a4c8e
TST: np._from_dlpack -> np.from_dlpack
tirthasheshpatel bbf6993
DOC: fix refguide failure
tirthasheshpatel dd4b167
DOC: np.from_dlpack: add ``__dlpack_device__`` to the docs
tirthasheshpatel 01d6bce
DOC: make links to DLPack intersphinx
tirthasheshpatel baac336
DOC: use ELLIPSIS in error message and add note about copying
tirthasheshpatel d3290b6
Merge branch 'fix-gh20743' of github.com:tirthasheshpatel/numpy into …
tirthasheshpatel 464a124
DOC: `from_dlpack(x)` to `numpy.from_dlpack`
tirthasheshpatel 586d675
Add from_dlpack to upcoming_changes
tirthasheshpatel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
NumPy now supports the DLPack protocol | ||
-------------------------------------- | ||
`numpy.from_dlpack` has been added to NumPy to exchange data using the DLPack protocol. | ||
It accepts Python objects that implement the ``__dlpack__`` and ``__dlpack_device__`` | ||
methods and returns a ndarray object which is generally the view of the data of the input | ||
object. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,6 +35,7 @@ From existing data | |
asmatrix | ||
copy | ||
frombuffer | ||
from_dlpack | ||
fromfile | ||
fromfunction | ||
fromiter | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
7802
|
@@ -13,7 +13,7 @@ | |
WRAP, arange, array, asarray, asanyarray, ascontiguousarray, | ||
asfortranarray, broadcast, can_cast, compare_chararrays, | ||
concatenate, copyto, dot, dtype, empty, | ||
empty_like, flatiter, frombuffer, _from_dlpack, fromfile, fromiter, | ||
empty_like, flatiter, frombuffer, from_dlpack, fromfile, fromiter, | ||
fromstring, inner, lexsort, matmul, may_share_memory, | ||
min_scalar_type, ndarray, nditer, nested_iters, promote_types, | ||
putmask, result_type, set_numeric_ops, shares_memory, vdot, where, | ||
|
@@ -41,7 +41,7 @@ | |
'newaxis', 'ndarray', 'flatiter', 'nditer', 'nested_iters', 'ufunc', | ||
'arange', 'array', 'asarray', 'asanyarray', 'ascontiguousarray', | ||
'asfortranarray', 'zeros', 'count_nonzero', 'empty', 'broadcast', 'dtype', | ||
'fromstring', 'fromfile', 'frombuffer', '_from_dlpack', 'where', | ||
'fromstring', 'fromfile', 'frombuffer', 'from_dlpack', 'where', | ||
'argwhere', 'copyto', 'concatenate', 'fastCopyAndTranspose', 'lexsort', | ||
'set_numeric_ops', 'can_cast', 'promote_types', 'min_scalar_type', | ||
'result_type', 'isfortran', 'empty_like', 'zeros_like', 'ones_like', | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Uh oh!
There was an error while loading. Please reload this page.