pub struct OptimizerConfig {
pub enable_fusion: bool,
pub enable_reordering: bool,
pub enable_auto_parallel: bool,
pub enable_memory_pooling: bool,
pub enable_graph_optimization: bool,
pub enable_adaptive_execution: bool,
pub target_platform: ExecutionPlatform,
pub memory_budget: Option<usize>,
pub num_threads: Option<usize>,
}Expand description
Configuration for pipeline optimization
Fields§
§enable_fusion: boolEnable operator fusion optimization
enable_reordering: boolEnable pipeline reordering
enable_auto_parallel: boolEnable automatic parallelization
enable_memory_pooling: boolEnable memory pooling
enable_graph_optimization: boolEnable computational graph optimization
enable_adaptive_execution: boolEnable adaptive execution
target_platform: ExecutionPlatformTarget execution platform
memory_budget: Option<usize>Memory budget in bytes
num_threads: Option<usize>Number of threads for parallel execution
Trait Implementations§
Source§impl Clone for OptimizerConfig
impl Clone for OptimizerConfig
Source§fn clone(&self) -> OptimizerConfig
fn clone(&self) -> OptimizerConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OptimizerConfig
impl Debug for OptimizerConfig
Source§impl Default for OptimizerConfig
impl Default for OptimizerConfig
Source§impl<'de> Deserialize<'de> for OptimizerConfig
impl<'de> Deserialize<'de> for OptimizerConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for OptimizerConfig
impl RefUnwindSafe for OptimizerConfig
impl Send for OptimizerConfig
impl Sync for OptimizerConfig
impl Unpin for OptimizerConfig
impl UnwindSafe for OptimizerConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more