docstr: Initializes the wav2vec2 optimizer and model optimizer
docstr_tok: ["Initializes","the","wav2vec2","optimizer","and","model","optimizer"]
code: def init_optimizers(self):
      "Initializes the wav2vec2 optimizer and model optimizer"
  
      self.optimizers_dict = {}
  
      # If the wav2vec encoder is unfrozen, we create the optimizer
      if not self.hparams.wav2vec2.freeze:
          self.wav2vec_optimizer = self.hparams.wav2vec_opt_class(
              self.modules.wav2vec2.parameters()
          )
          if self.checkpointer is not None:
              self.checkpointer.add_recoverable(
                  "wav2vec_opt", self.wav2vec_optimizer
              )
  
          self.optimizers_dict[
              "wav2vec_optimizer"
          ] = self.wav2vec_optimizer
  
      self.model_optimizer = self.hparams.model_opt_class(
          self.hparams.model.parameters()
      )
  
      self.optimizers_dict["model_optimizer"] = self.model_optimizer
  
      if self.checkpointer is not None:
          self.checkpointer.add_recoverable(
              "modelopt", self.model_optimizer
          )
  
imports: import functools
  import os
  import sys
  from pathlib import Path
  import torch
  import logging
  import speechbrain
  import torchaudio
  from hyperpyyaml import load_hyperpyyaml
  from speechbrain.tokenizers.SentencePiece import SentencePiece
  from speechbrain.utils.data_utils import undo_padding
  from speechbrain.utils.distributed import run_on_main, if_main_process
label_desc: Use image node_id 6 for calling the ASR obj's underlying member method code with example usage: obj.init_optimizers() without return types