clone_module | R Documentation |
Clones a module.
clone_module(module, deep = FALSE, ..., replace_values = TRUE)
module |
( |
deep |
( |
... |
(any) |
replace_values |
( |
if (torch_is_installed()) {
clone_module(nn_linear(1, 1), deep = TRUE)
# is the same as
nn_linear(1, 1)$clone(deep = TRUE)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.