summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTirth Patel <tirthasheshpatel@gmail.com>2022-03-09 12:32:10 +0530
committerGitHub <noreply@github.com>2022-03-09 12:32:10 +0530
commit464a124533dc4ac7de3ae9f09ac9ed3413fa4965 (patch)
tree1e07b0d3f16c6c15e12680a83a9c6d49119e9a54
parentd3290b6c0de967c89a2f1c8ccb5658e57d33de40 (diff)
downloadnumpy-464a124533dc4ac7de3ae9f09ac9ed3413fa4965.tar.gz
DOC: `from_dlpack(x)` to `numpy.from_dlpack`
Co-authored-by: Matti Picus <matti.picus@gmail.com>
-rw-r--r--doc/source/user/basics.interoperability.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/source/user/basics.interoperability.rst b/doc/source/user/basics.interoperability.rst
index ac85e79a0..853f324ba 100644
--- a/doc/source/user/basics.interoperability.rst
+++ b/doc/source/user/basics.interoperability.rst
@@ -133,7 +133,7 @@ The :doc:`DLPack <dlpack:index>` protocol defines a memory-layout of
strided n-dimensional array objects. It offers the following syntax
for data exchange:
-1. A ``from_dlpack(x)`` function, which accepts (array) objects with a
+1. A `numpy.from_dlpack` function, which accepts (array) objects with a
``__dlpack__`` method and uses that method to construct a new array
containing the data from ``x``.
2. ``__dlpack__(self, stream=None)`` and ``__dlpack_device__`` methods on the