pub enum ModelRole {
Teacher,
Student,
None,
}Expand description
Role of a model in the distillation session.
Variants§
Teacher
Teacher model (knowledge source)
Student
Student model (learning target)
None
No specific role assigned
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ModelRole
impl<'de> Deserialize<'de> for ModelRole
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
impl Copy for ModelRole
impl Eq for ModelRole
impl StructuralPartialEq for ModelRole
Auto Trait Implementations§
impl Freeze for ModelRole
impl RefUnwindSafe for ModelRole
impl Send for ModelRole
impl Sync for ModelRole
impl Unpin for ModelRole
impl UnwindSafe for ModelRole
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