docstr: Initializes the generator and discriminator optimizers
docstr_tok: ["Initializes","the","generator","and","discriminator","optimizers"]
code: def init_optimizers(self):
      "Initializes the generator and discriminator optimizers"
      self.g_optimizer = self.hparams.g_opt_class(
          self.modules.generator.parameters()
      )
      self.d_optimizer = self.hparams.d_opt_class(
          self.modules.discriminator.parameters()
      )
  
      if self.checkpointer is not None:
          self.checkpointer.add_recoverable("g_opt", self.g_optimizer)
          self.checkpointer.add_recoverable("d_opt", self.d_optimizer)
  
imports: import os
  import sys
  import shutil
  import pickle
  import torch
  import torchaudio
  import speechbrain
  from pesq import pesq
  from enum import Enum, auto
  from hyperpyyaml import load_hyperpyyaml
  from speechbrain.utils.metric_stats import MetricStats
  from speechbrain.processing.features import spectral_magnitude
  from speechbrain.nnet.loss.stoi_loss import stoi_loss
  from speechbrain.utils.distributed import run_on_main
  from speechbrain.dataio.sampler import ReproducibleWeightedRandomSampler
label_desc: Use image node_id 16 for calling the MetricGanBrain obj's underlying member method code with example usage: obj.init_optimizers() without return types