Skip to contents

Configure a Keras backend

Usage

use_backend(backend)

Arguments

backend

string, can be "tensorflow", "jax", "numpy", or "torch".

Value

Called primarily for side effects. Returns the provided backend, invisibly.

Details

These functions allow configuring which backend keras will use. Note that only one backend can be configured per R session.

The function should be called after library(keras3) and before calling other functions within the package (see below for an example).

library(keras3)
use_backend("tensorflow")