default_device | R Documentation |
Default torch device
default_device()
Returns torch::torch_device("cuda")
if torch::cuda_is_available()
, or torch::torch_device("cpu")
otherwise.
device <- default_device()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.