Skip to contents

Returns a device object for the default backend and platform. For the "xla" backend, the platform is determined by the PJRT_PLATFORM environment variable (defaulting to "cpu"). Other backends (e.g. "quickr") only support CPU. The backend defaults to default_backend().

Usage

default_device(backend = NULL)

Arguments

backend

(NULL | character(1))
Backend. Defaults to default_backend() when NULL.

Value

A backend-specific device object.