pub struct OnnxBackend;Expand description
ONNX backend that compiles NxPU IR into .onnx model files.
Trait Implementations§
Source§impl Backend for OnnxBackend
impl Backend for OnnxBackend
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 OnnxBackend
impl RefUnwindSafe for OnnxBackend
impl Send for OnnxBackend
impl Sync for OnnxBackend
impl Unpin for OnnxBackend
impl UnsafeUnpin for OnnxBackend
impl UnwindSafe for OnnxBackend
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