pub struct StableHloBackend;Expand description
StableHLO backend targeting Google Cloud TPU via OpenXLA.
Trait Implementations§
Source§impl Backend for StableHloBackend
impl Backend for StableHloBackend
Source§fn compile(
&self,
module: &Module,
_opts: &BackendOptions,
) -> Result<BackendOutput, BackendError>
fn compile( &self, module: &Module, _opts: &BackendOptions, ) -> Result<BackendOutput, BackendError>
Compile an optimized IR module to backend-specific output.
Source§fn preferred_precision(&self) -> Precision
fn preferred_precision(&self) -> Precision
The precision this backend prefers for optimal NPU execution.
Auto Trait Implementations§
impl Freeze for StableHloBackend
impl RefUnwindSafe for StableHloBackend
impl Send for StableHloBackend
impl Sync for StableHloBackend
impl Unpin for StableHloBackend
impl UnsafeUnpin for StableHloBackend
impl UnwindSafe for StableHloBackend
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