pub struct RandomGreedy {
pub config: RandomGreedyConfig,
pub best_flops: SizeType,
pub best_size: SizeType,
pub best_ssa_path: Option<PathType>,
pub costs: Vec<SizeType>,
pub sizes: Vec<SizeType>,
pub repeats_start: usize,
}Expand description
Random greedy path optimizer
Fields§
§config: RandomGreedyConfig§best_flops: SizeType§best_size: SizeType§best_ssa_path: Option<PathType>§costs: Vec<SizeType>§sizes: Vec<SizeType>§repeats_start: usizeImplementations§
Source§impl RandomGreedy
impl RandomGreedy
Trait Implementations§
Source§impl Clone for RandomGreedy
impl Clone for RandomGreedy
Source§fn clone(&self) -> RandomGreedy
fn clone(&self) -> RandomGreedy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RandomGreedy
impl Debug for RandomGreedy
Source§impl Default for RandomGreedy
impl Default for RandomGreedy
Source§impl From<&str> for RandomGreedy
impl From<&str> for RandomGreedy
Source§impl PathOptimizer for RandomGreedy
impl PathOptimizer for RandomGreedy
fn optimize_path( &mut self, inputs: &[&ArrayIndexType], output: &ArrayIndexType, size_dict: &SizeDictType, memory_limit: Option<SizeType>, ) -> Result<PathType, String>
Auto Trait Implementations§
impl Freeze for RandomGreedy
impl RefUnwindSafe for RandomGreedy
impl Send for RandomGreedy
impl Sync for RandomGreedy
impl Unpin for RandomGreedy
impl UnsafeUnpin for RandomGreedy
impl UnwindSafe for RandomGreedy
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