Skip to contents

Returns the name of the hardware platform (e.g. "cpu", "cuda") the data lives on. This is not the backend; see backend() for that.

Usage

# S3 method for class 'AnvlArray'
platform(x, ...)

platform(x, ...)

Arguments

x

(AnvlArray | PJRTBuffer)
An array or buffer.

...

Additional arguments passed to methods (unused).

Value

(character(1))

Details

Implemented via the generic pjrt::platform().

See also

Examples

x <- nv_array(1:4, dtype = "f32")
platform(x)
#> [1] "cpu"