accelerator | R Documentation |
Create an accelerator
accelerator(
device_placement = TRUE,
cpu = FALSE,
cuda_index = torch::cuda_current_device()
)
device_placement |
(logical) whether the |
cpu |
(logical) whether the training procedure should run on the CPU. |
cuda_index |
(integer) index of the CUDA device to use if multiple GPUs are available. Default: the result of torch::cuda_current_device(). |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.