Struct mnn::backend::BackendConfig
source · pub struct BackendConfig { /* private fields */ }
Implementations§
source§impl BackendConfig
impl BackendConfig
sourcepub fn set_memory_mode(&mut self, mode: MemoryMode)
pub fn set_memory_mode(&mut self, mode: MemoryMode)
Sets the MemoryMode for the backend
sourcepub fn set_power_mode(&mut self, mode: PowerMode)
pub fn set_power_mode(&mut self, mode: PowerMode)
Sets the PowerMode for the backend
sourcepub fn set_precision_mode(&mut self, mode: PrecisionMode)
pub fn set_precision_mode(&mut self, mode: PrecisionMode)
Sets the PrecisionMode for the backend
sourcepub fn set_flags(&mut self, flags: usize)
pub fn set_flags(&mut self, flags: usize)
Sets the flags for the backend What the flag represents is depends on each backend or isn’t documented
§Safety
This just binds to the underlying unsafe api and should be used only if you know what you are doing
Trait Implementations§
source§impl Default for BackendConfig
impl Default for BackendConfig
Auto Trait Implementations§
impl Freeze for BackendConfig
impl RefUnwindSafe for BackendConfig
impl !Send for BackendConfig
impl !Sync for BackendConfig
impl Unpin for BackendConfig
impl UnwindSafe for BackendConfig
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