pub struct Data2VecModelConfig {
pub d_model: usize,
pub n_layers: usize,
pub ema_decay: f32,
pub mask_ratio: f32,
pub k_top_layers: usize,
}Expand description
Hyper-parameters for the struct-based Data2VecModel.
Fields§
§d_model: usizeToken / patch embedding dimension.
n_layers: usizeNumber of encoder layers (must be >= 1).
ema_decay: f32EMA decay coefficient for the teacher update (e.g. 0.999).
mask_ratio: f32Fraction of tokens to mask during the student forward pass.
k_top_layers: usizeNumber of top teacher layer outputs to average for the target
(passed through to Data2VecConfig::top_k_average).
Trait Implementations§
Source§impl Clone for Data2VecModelConfig
impl Clone for Data2VecModelConfig
Source§fn clone(&self) -> Data2VecModelConfig
fn clone(&self) -> Data2VecModelConfig
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 Data2VecModelConfig
impl Debug for Data2VecModelConfig
Auto Trait Implementations§
impl Freeze for Data2VecModelConfig
impl RefUnwindSafe for Data2VecModelConfig
impl Send for Data2VecModelConfig
impl Sync for Data2VecModelConfig
impl Unpin for Data2VecModelConfig
impl UnsafeUnpin for Data2VecModelConfig
impl UnwindSafe for Data2VecModelConfig
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