Enum rust_bert::mobilebert::NormalizationType [−][src]
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
layer_norm
no_norm
Trait Implementations
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 RefUnwindSafe for NormalizationType
impl Send for NormalizationType
impl Sync for NormalizationType
impl Unpin for NormalizationType
impl UnwindSafe for NormalizationType
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = T
Should always be Self
