use_backend | R Documentation |
Configure a Keras backend
use_backend(backend, gpu = NA)
backend |
string, can be |
gpu |
bool, whether to use the GPU. |
These functions allow configuring which backend keras will use. Note that only one backend can be configured at a time.
The function should be called after library(keras3)
and before calling
other functions within the package (see below for an example).
There is experimental support for changing the backend after keras has initialized.
using config_set_backend()
.
library(keras3) use_backend("tensorflow")
Called primarily for side effects. Returns the provided backend
, invisibly.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.