reset_parameters = function(nn) {
f = function(x) {
if (!is.null(x$reset_parameters)) {
x$reset_parameters()
}
}
nn$apply(f)
}
reset_running_stats = function(nn) {
f = function(x) {
if (!is.null(x$reset_running_stats)) {
x$reset_running_stats()
}
}
nn$apply(f)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.