nn_identity | R Documentation |
A placeholder identity operator that is argument-insensitive.
nn_identity(...)
... |
any arguments (unused) |
if (torch_is_installed()) {
m <- nn_identity(54, unused_argument1 = 0.1, unused_argument2 = FALSE)
input <- torch_randn(128, 20)
output <- m(input)
print(output$size())
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.