tensorflow_on_before_use_session <- function(quiet) {
if (is_backend("tensorflow")) {
keras$backend$clear_session()
TRUE
} else {
FALSE
}
}
tensorflow_on_use_session <- function(sess, quiet) {
if (is_backend("tensorflow"))
keras$backend$set_session(sess)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.