pub struct DistillationInfo {
pub method: DistillMethod,
pub teacher: TeacherProvenance,
pub params: DistillationParams,
pub layer_mapping: Option<Vec<LayerMapping>>,
}Expand description
Complete distillation provenance (spec §6.3.2)
Fields§
§method: DistillMethodDistillation method used
teacher: TeacherProvenanceTeacher model provenance
params: DistillationParamsDistillation hyperparameters
layer_mapping: Option<Vec<LayerMapping>>Optional: layer mapping for progressive distillation
Trait Implementations§
Source§impl Clone for DistillationInfo
impl Clone for DistillationInfo
Source§fn clone(&self) -> DistillationInfo
fn clone(&self) -> DistillationInfo
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 DistillationInfo
impl Debug for DistillationInfo
Source§impl<'de> Deserialize<'de> for DistillationInfo
impl<'de> Deserialize<'de> for DistillationInfo
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 DistillationInfo
impl RefUnwindSafe for DistillationInfo
impl Send for DistillationInfo
impl Sync for DistillationInfo
impl Unpin for DistillationInfo
impl UnsafeUnpin for DistillationInfo
impl UnwindSafe for DistillationInfo
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