pub struct DARTS {
pub normal_cell: Cell,
pub reduction_cell: Cell,
pub num_cells: usize,
pub arch_lr: f32,
pub weight_lr: f32,
}Expand description
DARTS (Differentiable Architecture Search)
Fields§
§normal_cell: CellNormal cell (for feature extraction)
reduction_cell: CellReduction cell (for downsampling)
num_cells: usizeNumber of cells in the network
arch_lr: f32Learning rate for architecture parameters
weight_lr: f32Learning rate for network weights
Implementations§
Source§impl DARTS
impl DARTS
Sourcepub fn search_step(&mut self, train_loss: f32, val_loss: f32)
pub fn search_step(&mut self, train_loss: f32, val_loss: f32)
Perform one step of architecture search
Sourcepub fn derive_architecture(
&self,
) -> (Vec<(usize, usize, Operation)>, Vec<(usize, usize, Operation)>)
pub fn derive_architecture( &self, ) -> (Vec<(usize, usize, Operation)>, Vec<(usize, usize, Operation)>)
Discretize the continuous architecture
Sourcepub fn total_cost(&self) -> f32
pub fn total_cost(&self) -> f32
Compute total network cost
Auto Trait Implementations§
impl Freeze for DARTS
impl RefUnwindSafe for DARTS
impl Send for DARTS
impl Sync for DARTS
impl Unpin for DARTS
impl UnwindSafe for DARTS
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