pub struct RepformersConfig {Show 28 fields
pub rcut: f64,
pub rcut_smth: f64,
pub sel: usize,
pub ntypes: usize,
pub nlayers: usize,
pub g1_dim: usize,
pub g2_dim: usize,
pub axis_neuron: usize,
pub update_g1_has_conv: bool,
pub update_g1_has_drrd: bool,
pub update_g1_has_grrg: bool,
pub update_g1_has_attn: bool,
pub update_g2_has_g1g1: bool,
pub update_g2_has_attn: bool,
pub update_h2: bool,
pub attn1_hidden: usize,
pub attn1_nhead: usize,
pub attn2_hidden: usize,
pub attn2_nhead: usize,
pub attn2_has_gate: bool,
pub activation_function: String,
pub update_style: String,
pub smooth: bool,
pub use_sqrt_nnei: bool,
pub g1_out_conv: bool,
pub g1_out_mlp: bool,
pub ln_eps: f32,
pub epsilon: f32,
}Expand description
Top-level repformer-block config (RepformerArgs in Python).
Fields§
§rcut: f64§rcut_smth: f64§sel: usize§ntypes: usize§nlayers: usize§g1_dim: usize§g2_dim: usize§axis_neuron: usize§update_g1_has_conv: bool§update_g1_has_drrd: bool§update_g1_has_grrg: bool§update_g1_has_attn: bool§update_g2_has_g1g1: bool§update_g2_has_attn: bool§update_h2: bool§attn1_nhead: usize§attn2_nhead: usize§attn2_has_gate: bool§activation_function: String§update_style: String§smooth: bool§use_sqrt_nnei: bool§g1_out_conv: bool§g1_out_mlp: bool§ln_eps: f32§epsilon: f32Implementations§
Trait Implementations§
Source§impl Clone for RepformersConfig
impl Clone for RepformersConfig
Source§fn clone(&self) -> RepformersConfig
fn clone(&self) -> RepformersConfig
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 RepformersConfig
impl Debug for RepformersConfig
Source§impl<'de> Deserialize<'de> for RepformersConfig
impl<'de> Deserialize<'de> for RepformersConfig
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 RepformersConfig
impl RefUnwindSafe for RepformersConfig
impl Send for RepformersConfig
impl Sync for RepformersConfig
impl Unpin for RepformersConfig
impl UnsafeUnpin for RepformersConfig
impl UnwindSafe for RepformersConfig
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