Struct syntaxdot_transformers::models::albert::AlbertConfig
source · [−]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
sourceimpl Debug for AlbertConfig
impl Debug for AlbertConfig
sourceimpl Default for AlbertConfig
impl Default for AlbertConfig
sourceimpl<'de> Deserialize<'de> for AlbertConfig where
AlbertConfig: Default,
impl<'de> Deserialize<'de> for AlbertConfig where
AlbertConfig: Default,
sourcefn 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
sourceimpl From<&AlbertConfig> for BertConfig
impl From<&AlbertConfig> for BertConfig
sourcefn from(albert_config: &AlbertConfig) -> Self
fn from(albert_config: &AlbertConfig) -> Self
Converts to this type from the input type.
sourceimpl From<&SqueezeAlbertConfig> for AlbertConfig
impl From<&SqueezeAlbertConfig> for AlbertConfig
sourcefn from(albert_config: &SqueezeAlbertConfig) -> Self
fn from(albert_config: &SqueezeAlbertConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for AlbertConfig
impl Send for AlbertConfig
impl Sync for AlbertConfig
impl Unpin for AlbertConfig
impl UnwindSafe for AlbertConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more