nn_nonlinear | R Documentation |
Shortcut to create linear layer with nonlinear activation function
nn_nonlinear(in_features, out_features, bias = TRUE, activation = nn_relu())
in_features |
( |
out_features |
( |
bias |
( |
activation |
( |
net <- nn_nonlinear(10, 1) x <- torch_tensor(matrix(1, nrow = 2, ncol = 10)) net(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.