Convert a platform name to a PJRT plugin or verify that an object is already a plugin.
Arguments
- x
(any)
Object to convert to a PJRT plugin. Currently supports PJRTPlugin and character(1).
Examples
# Convert from platform name
plugin <- as_pjrt_plugin("cpu")
plugin
#> <PJRTPlugin:cpu>