Skip to contents

Convert a platform name to a PJRT plugin or verify that an object is already a plugin.

Usage

as_pjrt_plugin(x)

Arguments

x

(any)
Object to convert to a PJRT plugin. Currently supports PJRTPlugin and character(1).

Value

PJRTPlugin

Examples

# Convert from platform name
plugin <- as_pjrt_plugin("cpu")
plugin
#> <PJRTPlugin:cpu>