pub struct LayerMapping {
pub student_layer: usize,
pub teacher_layer: usize,
pub weight: f32,
}Expand description
Layer mapping for progressive distillation (spec §6.3.2)
Fields§
§student_layer: usizeStudent layer index
teacher_layer: usizeTeacher layer index
weight: f32Weight for this layer’s loss
Trait Implementations§
Source§impl Clone for LayerMapping
impl Clone for LayerMapping
Source§fn clone(&self) -> LayerMapping
fn clone(&self) -> LayerMapping
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 LayerMapping
impl Debug for LayerMapping
Source§impl<'de> Deserialize<'de> for LayerMapping
impl<'de> Deserialize<'de> for LayerMapping
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LayerMapping
impl RefUnwindSafe for LayerMapping
impl Send for LayerMapping
impl Sync for LayerMapping
impl Unpin for LayerMapping
impl UnsafeUnpin for LayerMapping
impl UnwindSafe for LayerMapping
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