nn_parameter
R/nn.R
nn_parameter.Rd
Indicates to nn_module that x is a parameter
x
nn_parameter(x, requires_grad = TRUE)
the tensor that you want to indicate as parameter
whether this parameter should have requires_grad = TRUE
requires_grad = TRUE