| set_device | R Documentation |
Set model device.
set_device(object, device, ...)
object |
An neural network object. |
device |
( |
Object of the same class with device set.
rnn_net <-
model_rnn(
input_size = 1,
output_size = 1,
hidden_size = 10
) %>%
set_device("cpu")
rnn_net
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.