pub struct AutomaticPrecisionSelector {
pub criteria: PrecisionCriteria,
pub strategy: PrecisionStrategy,
pub operation_profiles: HashMap<String, PrecisionProfile>,
}Expand description
Automatic precision selector
Fields§
§criteria: PrecisionCriteriaSelection criteria
strategy: PrecisionStrategySelection strategy
operation_profiles: HashMap<String, PrecisionProfile>Operation-specific precision profiles
Implementations§
Source§impl AutomaticPrecisionSelector
impl AutomaticPrecisionSelector
Sourcepub fn new(criteria: PrecisionCriteria) -> Self
pub fn new(criteria: PrecisionCriteria) -> Self
Create new precision selector
Sourcepub fn with_strategy(
criteria: PrecisionCriteria,
strategy: PrecisionStrategy,
) -> Self
pub fn with_strategy( criteria: PrecisionCriteria, strategy: PrecisionStrategy, ) -> Self
Create precision selector with custom strategy
Sourcepub fn analyze_graph(
&self,
graph: &FxGraph,
) -> TorshResult<HashMap<NodeIndex, PrecisionRecommendation>>
pub fn analyze_graph( &self, graph: &FxGraph, ) -> TorshResult<HashMap<NodeIndex, PrecisionRecommendation>>
Analyze graph and recommend precision for each operation
Auto Trait Implementations§
impl Freeze for AutomaticPrecisionSelector
impl RefUnwindSafe for AutomaticPrecisionSelector
impl Send for AutomaticPrecisionSelector
impl Sync for AutomaticPrecisionSelector
impl Unpin for AutomaticPrecisionSelector
impl UnsafeUnpin for AutomaticPrecisionSelector
impl UnwindSafe for AutomaticPrecisionSelector
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> 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