diff options
| author | Tirth Patel <tirthasheshpatel@gmail.com> | 2022-03-09 12:40:37 +0530 |
|---|---|---|
| committer | Tirth Patel <tirthasheshpatel@gmail.com> | 2022-03-09 12:40:37 +0530 |
| commit | 586d675040977574c81bfadd9b1304e056a040c5 (patch) | |
| tree | b7f287ae2eed4eeaa3d05547ac9a32001eab113c | |
| parent | 464a124533dc4ac7de3ae9f09ac9ed3413fa4965 (diff) | |
| download | numpy-586d675040977574c81bfadd9b1304e056a040c5.tar.gz | |
Add from_dlpack to upcoming_changes
| -rw-r--r-- | doc/release/upcoming_changes/21145.new_function.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/release/upcoming_changes/21145.new_function.rst b/doc/release/upcoming_changes/21145.new_function.rst new file mode 100644 index 000000000..75fa9e181 --- /dev/null +++ b/doc/release/upcoming_changes/21145.new_function.rst @@ -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. |
