espnet2.asr.encoder.beats_encoder.init_bert_params
Less than 1 minute
espnet2.asr.encoder.beats_encoder.init_bert_params
espnet2.asr.encoder.beats_encoder.init_bert_params(module)
Initialize the weights specific to the BERT Model. This overrides the default initializations depending on the specified arguments.
- If normal_init_linear_weights is set then weights of linear layer will be initialized using the normal distribution and bais will be set to the specified value.
- If normal_init_embed_weights is set then weights of embedding layer will be initialized using the normal distribution.
- If normal_init_proj_weights is set then weights of in_project_weight for MultiHeadAttention initialized using the normal distribution (to be validated).