diff --git a/docs/static_site/src/pages/api/r/docs/tutorials/ndarray.md b/docs/static_site/src/pages/api/r/docs/tutorials/ndarray.md index 748ab12f5e55..dc3d1c5a028e 100644 --- a/docs/static_site/src/pages/api/r/docs/tutorials/ndarray.md +++ b/docs/static_site/src/pages/api/r/docs/tutorials/ndarray.md @@ -149,7 +149,7 @@ If two `NDArray`s are located on different devices, we need to explicitly move t ```r a <- mx.nd.ones(c(2, 3)) * 2 b <- mx.nd.ones(c(2, 3), mx.gpu()) / 8 -c <- a.copyto(mx.gpu()) * b +c <- mx.nd.copyto(a, mx.gpu()) * b as.array(c) ``` @@ -202,7 +202,7 @@ following example, `a <- a + 1` and `c <- c * 3` can be executed in parallel, bu ```r a <- mx.nd.ones(c(2,3)) b <- a -c <- a.copyto(mx.cpu()) +c <- mx.nd.copyto(a, mx.cpu()) a <- a + 1 b <- b * 3 c <- c * 3 diff --git a/docs/static_site/src/pages/api/r/docs/tutorials/symbol.md b/docs/static_site/src/pages/api/r/docs/tutorials/symbol.md index 5827d6f9b50c..b5d6b8fd32a7 100644 --- a/docs/static_site/src/pages/api/r/docs/tutorials/symbol.md +++ b/docs/static_site/src/pages/api/r/docs/tutorials/symbol.md @@ -1,6 +1,6 @@ --- layout: page_api -title: Symbol +title: NDArray is_tutorial: true tag: r permalink: /api/r/docs/tutorials/symbol