Skip to contents

Returns the name of the backend an array or device belongs to.

Usage

backend(x, ...)

Arguments

x

(AnvlArray | device object)
An array or a device (see nv_device()).

...

Unused.

Value

(character(1))
The backend name.

Examples

backend(nv_array(1:3))
#> [1] "pjrt"
backend(nv_device("cpu"))
#> [1] "pjrt"