pub struct Config {
pub backend: Backend,
pub threads: i32,
pub precision: i32,
pub power: i32,
pub memory: i32,
pub gpu_mode: i32,
}Expand description
Native engine configuration.
Fields§
§backend: BackendBackend.
threads: i32MNN thread count.
precision: i32MNN precision enum value.
power: i32MNN power enum value.
memory: i32MNN memory enum value.
gpu_mode: i32GPU tuning/memory bitmask (not a CPU thread count).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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