nn_exp <- torch::nn_module(
classname = "nn_exp",
# --- init
initialize = function(...) {
},
# --- forward:
forward = function(x,...) {
# --- perform exponential
return( torch_exp(x) )
}
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.