Returns the platform name (e.g. "cpu", "cuda") identifying
the compute backend.
Arguments
- x
(
tensorish)
A tensor-like object.- ...
Additional arguments passed to methods (unused).
Details
Implemented via the generic pjrt::platform().
Examples
x <- nv_tensor(1:4, dtype = "f32")
platform(x)
#> [1] "cpu"