Skip to contents

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

Usage

platform(x, ...)

Arguments

x

(tensorish)
A tensor-like object.

...

Additional arguments passed to methods (unused).

Value

character(1)

Details

Implemented via the generic pjrt::platform().

See also

Examples

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