Returns the name of the hardware platform (e.g. "cpu", "cuda") the data
lives on. This is not the backend; see backend() for that.
Arguments
- x
(
AnvlArray|PJRTBuffer)
An array or buffer.- ...
Additional arguments passed to methods (unused).
Details
Implemented via the generic pjrt::platform().
Examples
x <- nv_array(1:4, dtype = "f32")
platform(x)
#> [1] "cpu"