pub struct DistillationTarget {
pub input_embedding: Vec<f32>,
pub teacher_logits: Vec<f32>,
pub selected_route: String,
pub confidence: f32,
pub quality: f32,
pub metadata: DistillationMetadata,
}Expand description
Distillation target for knowledge distillation
Fields§
§input_embedding: Vec<f32>Input embedding
teacher_logits: Vec<f32>Teacher model logits
selected_route: StringSelected route
confidence: f32Confidence score
quality: f32Quality score
metadata: DistillationMetadataMetadata
Trait Implementations§
Source§impl Clone for DistillationTarget
impl Clone for DistillationTarget
Source§fn clone(&self) -> DistillationTarget
fn clone(&self) -> DistillationTarget
Returns a duplicate of the value. Read more
1.0.0 · 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 DistillationTarget
impl Debug for DistillationTarget
Source§impl<'de> Deserialize<'de> for DistillationTarget
impl<'de> Deserialize<'de> for DistillationTarget
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 DistillationTarget
impl RefUnwindSafe for DistillationTarget
impl Send for DistillationTarget
impl Sync for DistillationTarget
impl Unpin for DistillationTarget
impl UnwindSafe for DistillationTarget
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