Skip to content

Commit

Permalink
Removed cuda specific operations for push to GitHub.
Browse files Browse the repository at this point in the history
  • Loading branch information
AmandaRP committed Oct 4, 2023
1 parent f92d149 commit 18f33f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions 03_tensors.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ t2 <- t1$to(dtype = torch_int())
t2$dtype
# utilize GPU:
t2 <- t1$to(device = "cuda")
t2$device
#t2 <- t1$to(device = "cuda")
#t2$device
```


Expand Down Expand Up @@ -91,7 +91,7 @@ class(1:2)

Set the type and device:

```{r}
```{r eval=FALSE}
torch_tensor(1:5, dtype = torch_float(), device = "cuda")
```

Expand Down

0 comments on commit 18f33f0

Please sign in to comment.