Skip to content

Commit 8adc781

Browse files
authored
Merge pull request #2061 from IntelPython/fix-typo-in-example
Fix a typo in beginners guide
2 parents d47f57d + 43ce5b4 commit 8adc781

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/doc_sources/beginners_guides/tensor_intro.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ An alternative way to migrate data is to use :py:func:`asarray` and specify devi
151151
x_cpu = tensor.concat((tensor.ones(10, device="cpu"), tensor.zeros(1000, device="cpu")))
152152
153153
# data migration is performed via host
154-
x_gpu = tensor.asarray(x_cpu, device="cpu")
154+
x_gpu = tensor.asarray(x_cpu, device="gpu")
155155
156156
An advantage of using the function ``asarray`` is that migration from ``usm_ndarray`` instances allocated on different
157157
devices as well migration from :py:class:`numpy.ndarray` may be accomplished in a single call:

0 commit comments

Comments
 (0)