pub struct PjrtPlugin { /* private fields */ }Expand description
Dynamically loaded PJRT plugin.
§Examples
use tenferro_xla::{Error, PjrtPlugin};
let err = PjrtPlugin::load_from_env("__TENFERRO_XLA_DOCS_UNSET").unwrap_err();
assert!(matches!(err, Error::MissingEnv { .. }));Implementations§
Source§impl PjrtPlugin
impl PjrtPlugin
Sourcepub fn load_from_env(var: &'static str) -> Result<Self>
pub fn load_from_env(var: &'static str) -> Result<Self>
Load a PJRT plugin path from an environment variable.
§Examples
use tenferro_xla::{Error, PjrtPlugin};
let err = PjrtPlugin::load_from_env("__TENFERRO_XLA_DOCS_UNSET").unwrap_err();
assert!(matches!(err, Error::MissingEnv { .. }));Trait Implementations§
Auto Trait Implementations§
impl Freeze for PjrtPlugin
impl RefUnwindSafe for PjrtPlugin
impl !Send for PjrtPlugin
impl !Sync for PjrtPlugin
impl Unpin for PjrtPlugin
impl UnsafeUnpin for PjrtPlugin
impl UnwindSafe for PjrtPlugin
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more