summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTirth Patel <tirthasheshpatel@gmail.com>2022-03-08 21:02:52 +0530
committerGitHub <noreply@github.com>2022-03-08 21:02:52 +0530
commitdd4b1670486f09154039ad5633c5c5c74ddf44e0 (patch)
tree11e2cbd234b810ef40589233520ed5b3bf0adbe2
parentbbf699311faec5752e84f1c06262486ae744e74e (diff)
downloadnumpy-dd4b1670486f09154039ad5633c5c5c74ddf44e0.tar.gz
DOC: np.from_dlpack: add ``__dlpack_device__`` to the docs
-rw-r--r--numpy/core/_add_newdocs.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/core/_add_newdocs.py b/numpy/core/_add_newdocs.py
index e31b7671c..80409669d 100644
--- a/numpy/core/_add_newdocs.py
+++ b/numpy/core/_add_newdocs.py
@@ -1584,7 +1584,8 @@ add_newdoc('numpy.core.multiarray', 'from_dlpack',
Parameters
----------
x : object
- A Python object that implements the ``__dlpack__`` method.
+ A Python object that implements the ``__dlpack__`` and
+ ``__dlpack_device__`` methods.
Returns
-------