Enum rust_bert::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