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 dc3d1c5a028e..748ab12f5e55 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 <- mx.nd.copyto(a, mx.gpu()) * b +c <- a.copyto(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 <- mx.nd.copyto(a, mx.cpu()) +c <- a.copyto(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 b5d6b8fd32a7..5827d6f9b50c 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: NDArray +title: Symbol is_tutorial: true tag: r permalink: /api/r/docs/tutorials/symbol