pub enum SearchPhase {
Initial,
Intermediate,
Advanced,
Final,
}Expand description
Search phases in progressive NAS
Variants§
Initial
Initial simple architectures
Intermediate
Intermediate complexity
Advanced
Advanced architectures
Final
Final optimization phase
Implementations§
Source§impl SearchPhase
impl SearchPhase
Sourcepub const ORDER: [SearchPhase; 4]
pub const ORDER: [SearchPhase; 4]
Every phase in schedule order.
Sourcepub fn index(self) -> usize
pub fn index(self) -> usize
Position of this phase in the schedule, 0 for SearchPhase::Initial.
Sourcepub fn at(index: usize) -> SearchPhase
pub fn at(index: usize) -> SearchPhase
Phase at schedule position index, saturating at SearchPhase::Final.
Sourcepub fn next(self) -> Option<SearchPhase>
pub fn next(self) -> Option<SearchPhase>
The next phase, or None when this is already the last one.
Trait Implementations§
Source§impl Clone for SearchPhase
impl Clone for SearchPhase
impl Copy for SearchPhase
Source§impl Debug for SearchPhase
impl Debug for SearchPhase
impl Eq for SearchPhase
Source§impl Hash for SearchPhase
impl Hash for SearchPhase
Source§impl Ord for SearchPhase
impl Ord for SearchPhase
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for SearchPhase
impl PartialEq for SearchPhase
Source§impl PartialOrd for SearchPhase
impl PartialOrd for SearchPhase
impl StructuralPartialEq for SearchPhase
Auto Trait Implementations§
impl Freeze for SearchPhase
impl RefUnwindSafe for SearchPhase
impl Send for SearchPhase
impl Sync for SearchPhase
impl Unpin for SearchPhase
impl UnsafeUnpin for SearchPhase
impl UnwindSafe for SearchPhase
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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