pub struct ArmEthosBackend;Expand description
Arm Ethos NPU backend.
Compilation pipeline:
- Classify and validate patterns against Ethos-U support matrix.
- Lower IR → TFLite FlatBuffer via
TfLiteBackend. - If
velais available, invoke it on the TFLite file to produce an Ethos-U optimized binary. - Otherwise, emit the unoptimized TFLite with a diagnostic.
Trait Implementations§
Source§impl Backend for ArmEthosBackend
impl Backend for ArmEthosBackend
Source§fn preferred_precision(&self) -> Precision
fn preferred_precision(&self) -> Precision
The precision this backend prefers for optimal NPU execution.
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.
Auto Trait Implementations§
impl Freeze for ArmEthosBackend
impl RefUnwindSafe for ArmEthosBackend
impl Send for ArmEthosBackend
impl Sync for ArmEthosBackend
impl Unpin for ArmEthosBackend
impl UnsafeUnpin for ArmEthosBackend
impl UnwindSafe for ArmEthosBackend
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