pub struct PredictorHead {
pub in_dim: usize,
pub hidden_dim: usize,
pub out_dim: usize,
pub w1: Vec<f32>,
pub b1: Vec<f32>,
pub w2: Vec<f32>,
pub b2: Vec<f32>,
}Expand description
2-layer MLP predictor head used by BYOL / SimSiam.
Fields§
§in_dim: usizeInput dim.
Hidden dim.
out_dim: usizeOutput dim (same as projector output for both BYOL and SimSiam).
w1: Vec<f32>First layer weights [hidden × in].
b1: Vec<f32>First layer bias.
w2: Vec<f32>Second layer weights [out × hidden].
b2: Vec<f32>Second layer bias.
Implementations§
Trait Implementations§
Source§impl Clone for PredictorHead
impl Clone for PredictorHead
Source§fn clone(&self) -> PredictorHead
fn clone(&self) -> PredictorHead
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 moreAuto Trait Implementations§
impl Freeze for PredictorHead
impl RefUnwindSafe for PredictorHead
impl Send for PredictorHead
impl Sync for PredictorHead
impl Unpin for PredictorHead
impl UnsafeUnpin for PredictorHead
impl UnwindSafe for PredictorHead
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