class_docstr: MEGA module.
  
  Args:
      size: Input/Output size.
      num_heads: Number of EMA heads.
      qk_size: Shared query and key size for attention module.
      v_size: Value size for attention module.
      qk_v_size: (QK, V) sizes for attention module.
      activation: Activation function type.
      normalization: Normalization module.
      rel_pos_bias_type: Type of relative position bias in attention module.
      max_positions: Maximum number of position for RelativePositionBias.
      truncation_length: Maximum length for truncation in EMA module.
      chunk_size: Chunk size for attention computation (-1 = full context).
      dropout_rate: Dropout rate for inner modules.
      att_dropout_rate: Dropout rate for the attention module.
      ema_dropout_rate: Dropout rate for the EMA module.
docstr: Reset module parameters.
  
  Args:
      val: Initialization value.
      std: Standard deviation.
docstr_tok: ["Reset","module","parameters",".","Args",":","val",":","Initialization","value",".","std",":","Standard","deviation","."]
code: def reset_parameters(self, val: int = 0.0, std: int = 0.02) -> None:
      """Reset module parameters.
  
      Args:
          val: Initialization value.
          std: Standard deviation.
  
      """
      torch.nn.init.normal_(self.proj_v.weight, mean=val, std=std)
      torch.nn.init.constant_(self.proj_v.bias, val)
  
      torch.nn.init.normal_(self.proj_mx.weight, mean=val, std=std)
      torch.nn.init.constant_(self.proj_mx.bias, val)
  
      torch.nn.init.normal_(self.proj_h.weight, mean=val, std=std)
      torch.nn.init.constant_(self.proj_h.bias, val)
  
      torch.nn.init.normal_(self.qk_weight, mean=val, std=std)
      torch.nn.init.constant_(self.qk_bias, val)
  
file_path: espnet/espnet2/asr_transducer/decoder/blocks/mega.py
imports: from typing import Dict, Optional, Tuple
  import torch
  from espnet2.asr_transducer.decoder.modules.mega.multi_head_damped_ema import MultiHeadDampedEMA
  from espnet2.asr_transducer.decoder.modules.mega.positional_bias import RelativePositionBias, RotaryRelativePositionBias
label_desc: Use image node_id 2 for calling the MEGA obj's underlying member method code with example usage: obj.reset_parameters(val, std) without return types