diff options
author | Tirth Patel <tirthasheshpatel@gmail.com> | 2022-03-08 21:02:52 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-08 21:02:52 +0530 |
commit | dd4b1670486f09154039ad5633c5c5c74ddf44e0 (patch) | |
tree | 11e2cbd234b810ef40589233520ed5b3bf0adbe2 | |
parent | bbf699311faec5752e84f1c06262486ae744e74e (diff) | |
download | numpy-dd4b1670486f09154039ad5633c5c5c74ddf44e0.tar.gz |
DOC: np.from_dlpack: add ``__dlpack_device__`` to the docs
-rw-r--r-- | numpy/core/_add_newdocs.py | 3 |
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 ------- |