From 43ce5b47d2633f945c6ee89f30bd81922c558e6b Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Fri, 25 Apr 2025 12:06:34 +0200 Subject: [PATCH] Fix typo in beginners guide --- docs/doc_sources/beginners_guides/tensor_intro.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/doc_sources/beginners_guides/tensor_intro.rst b/docs/doc_sources/beginners_guides/tensor_intro.rst index 7327fa556f..b5316503f4 100644 --- a/docs/doc_sources/beginners_guides/tensor_intro.rst +++ b/docs/doc_sources/beginners_guides/tensor_intro.rst @@ -151,7 +151,7 @@ An alternative way to migrate data is to use :py:func:`asarray` and specify devi x_cpu = tensor.concat((tensor.ones(10, device="cpu"), tensor.zeros(1000, device="cpu"))) # data migration is performed via host - x_gpu = tensor.asarray(x_cpu, device="cpu") + x_gpu = tensor.asarray(x_cpu, device="gpu") An advantage of using the function ``asarray`` is that migration from ``usm_ndarray`` instances allocated on different devices as well migration from :py:class:`numpy.ndarray` may be accomplished in a single call: