Enum rust_bert::models::mobilebert::NormalizationType
source · pub enum NormalizationType {
layer_norm,
no_norm,
}
Expand description
Normalization type to use for the MobileBERT model.
no_norm
uses a matrix multiplication with a set of learned weights, while layer_norm
uses a
build-in layer normalization module.
Variants§
Trait Implementations§
source§impl Clone for NormalizationType
impl Clone for NormalizationType
source§fn clone(&self) -> NormalizationType
fn clone(&self) -> NormalizationType
Returns a copy of the value. Read more
1.0.0 · 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 NormalizationType
impl Debug for NormalizationType
source§impl<'de> Deserialize<'de> for NormalizationType
impl<'de> Deserialize<'de> for NormalizationType
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 Serialize for NormalizationType
impl Serialize for NormalizationType
impl Copy for NormalizationType
Auto Trait Implementations§
impl RefUnwindSafe for NormalizationType
impl Send for NormalizationType
impl Sync for NormalizationType
impl Unpin for NormalizationType
impl UnwindSafe for NormalizationType
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