pub struct RmsNormConfig {
pub d_model: usize,
}Expand description
Configuration to create a RmsNorm layer.
Fields§
§d_model: usizeThe size of the input features.
Implementations§
Source§impl RmsNormConfig
impl RmsNormConfig
Trait Implementations§
Source§impl Clone for RmsNormConfig
impl Clone for RmsNormConfig
Source§impl Config for RmsNormConfig
impl Config for RmsNormConfig
§fn load_binary(data: &[u8]) -> Result<Self, ConfigError>
fn load_binary(data: &[u8]) -> Result<Self, ConfigError>
Loads the configuration from a binary buffer. Read more
Source§impl Debug for RmsNormConfig
impl Debug for RmsNormConfig
Source§impl<'de> Deserialize<'de> for RmsNormConfig
impl<'de> Deserialize<'de> for RmsNormConfig
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
Source§impl Display for RmsNormConfig
impl Display for RmsNormConfig
Auto Trait Implementations§
impl Freeze for RmsNormConfig
impl RefUnwindSafe for RmsNormConfig
impl Send for RmsNormConfig
impl Sync for RmsNormConfig
impl Unpin for RmsNormConfig
impl UnsafeUnpin for RmsNormConfig
impl UnwindSafe for RmsNormConfig
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