pub struct ProfileGuidedConfig {
pub enable_pgo_feature_selection: bool,
pub enable_pgo_bandwidth_optimization: bool,
pub profile_data_path: Option<String>,
pub target_architecture: TargetArchitecture,
pub optimization_level: OptimizationLevel,
}Expand description
Profile-guided optimization configuration ProfileGuidedConfig
Fields§
§enable_pgo_feature_selection: boolEnable PGO-based feature size selection
enable_pgo_bandwidth_optimization: boolEnable PGO-based bandwidth optimization
profile_data_path: Option<String>Profile data file path
target_architecture: TargetArchitectureTarget hardware architecture
optimization_level: OptimizationLevelOptimization level
Implementations§
Source§impl ProfileGuidedConfig
impl ProfileGuidedConfig
Sourcepub fn enable_feature_selection(self) -> Self
pub fn enable_feature_selection(self) -> Self
Enable PGO-based feature size selection
Sourcepub fn enable_bandwidth_optimization(self) -> Self
pub fn enable_bandwidth_optimization(self) -> Self
Enable PGO-based bandwidth optimization
Sourcepub fn profile_data_path<P: Into<String>>(self, path: P) -> Self
pub fn profile_data_path<P: Into<String>>(self, path: P) -> Self
Set profile data file path
Sourcepub fn target_architecture(self, arch: TargetArchitecture) -> Self
pub fn target_architecture(self, arch: TargetArchitecture) -> Self
Set target architecture
Sourcepub fn optimization_level(self, level: OptimizationLevel) -> Self
pub fn optimization_level(self, level: OptimizationLevel) -> Self
Set optimization level
Sourcepub fn recommended_feature_count(
&self,
data_size: usize,
dimensionality: usize,
) -> usize
pub fn recommended_feature_count( &self, data_size: usize, dimensionality: usize, ) -> usize
Get recommended feature count based on architecture and optimization level
Trait Implementations§
Source§impl Clone for ProfileGuidedConfig
impl Clone for ProfileGuidedConfig
Source§fn clone(&self) -> ProfileGuidedConfig
fn clone(&self) -> ProfileGuidedConfig
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 ProfileGuidedConfig
impl Debug for ProfileGuidedConfig
Auto Trait Implementations§
impl Freeze for ProfileGuidedConfig
impl RefUnwindSafe for ProfileGuidedConfig
impl Send for ProfileGuidedConfig
impl Sync for ProfileGuidedConfig
impl Unpin for ProfileGuidedConfig
impl UnwindSafe for ProfileGuidedConfig
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