Create a PJRT client for a specific device.
Arguments
- platform
(
character(1)|NULL)
Platform name (e.g., "cpu", "cuda", "metal"). IfNULL, usePJRT_PLATFORMenvironment variable or default to "cpu".- ...
Additional options passed to the PJRT client creation. For CPU clients, you can pass
cpu_device_countto specify the number of CPU devices. You can also configure this viaPJRT_CPU_DEVICE_COUNTenvironment variable.
Extractors
platform()for acharacter(1)representation of the platform.devices()for alistofPJRTDeviceobjects.