pub struct AlbertConfig {Show 14 fields
pub attention_probs_dropout_prob: f64,
pub embedding_size: i64,
pub hidden_act: Activation,
pub hidden_dropout_prob: f64,
pub hidden_size: i64,
pub initializer_range: f64,
pub inner_group_num: i64,
pub intermediate_size: i64,
pub max_position_embeddings: i64,
pub num_attention_heads: i64,
pub num_hidden_groups: i64,
pub num_hidden_layers: i64,
pub type_vocab_size: i64,
pub vocab_size: i64,
}
Expand description
ALBERT model configuration.
Fields§
§attention_probs_dropout_prob: f64
§embedding_size: i64
§initializer_range: f64
§inner_group_num: i64
§intermediate_size: i64
§max_position_embeddings: i64
§num_attention_heads: i64
§type_vocab_size: i64
§vocab_size: i64
Trait Implementations§
Source§impl Debug for AlbertConfig
impl Debug for AlbertConfig
Source§impl Default for AlbertConfig
impl Default for AlbertConfig
Source§impl<'de> Deserialize<'de> for AlbertConfigwhere
AlbertConfig: Default,
impl<'de> Deserialize<'de> for AlbertConfigwhere
AlbertConfig: Default,
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 From<&AlbertConfig> for BertConfig
impl From<&AlbertConfig> for BertConfig
Source§fn from(albert_config: &AlbertConfig) -> Self
fn from(albert_config: &AlbertConfig) -> Self
Converts to this type from the input type.
Source§impl From<&SqueezeAlbertConfig> for AlbertConfig
impl From<&SqueezeAlbertConfig> for AlbertConfig
Source§fn from(albert_config: &SqueezeAlbertConfig) -> Self
fn from(albert_config: &SqueezeAlbertConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AlbertConfig
impl RefUnwindSafe for AlbertConfig
impl Send for AlbertConfig
impl Sync for AlbertConfig
impl Unpin for AlbertConfig
impl UnwindSafe for AlbertConfig
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more