Skip to contents

Returns the platform name (e.g. "cpu", "cuda") identifying the compute backend.

Usage

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

platform(x, ...)

Arguments

x

(arrayish)
An array-like object.

...

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"