Struct mnn::schedule::ScheduleConfig
source · pub struct ScheduleConfig { /* private fields */ }
Implementations§
source§impl ScheduleConfig
impl ScheduleConfig
pub fn as_ptr_mut(&mut self) -> *mut MNNScheduleConfig
pub fn new() -> Self
pub fn set_save_tensors(&mut self, save_tensors: &[&str]) -> Result<()>
pub fn set_type(&mut self, forward_type: ForwardType)
pub fn set_num_threads(&mut self, num_threads: i32)
pub fn set_mode(&mut self, mode: i32)
pub fn set_backup_type(&mut self, backup_type: ForwardType)
pub fn set_backend_config( &mut self, backend_config: impl Into<Option<BackendConfig>>, )
Trait Implementations§
source§impl Default for ScheduleConfig
impl Default for ScheduleConfig
source§impl Drop for ScheduleConfig
impl Drop for ScheduleConfig
source§impl FromIterator<ScheduleConfig> for ScheduleConfigs
impl FromIterator<ScheduleConfig> for ScheduleConfigs
source§fn from_iter<T: IntoIterator<Item = ScheduleConfig>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = ScheduleConfig>>(iter: T) -> Self
Creates a value from an iterator. Read more
impl Send for ScheduleConfig
Auto Trait Implementations§
impl Freeze for ScheduleConfig
impl RefUnwindSafe for ScheduleConfig
impl !Sync for ScheduleConfig
impl Unpin for ScheduleConfig
impl UnwindSafe for ScheduleConfig
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