class_docstr: Double optimizer class for the Capacitron model.
class_docstr_tok: ["Double","optimizer","class","for","the","Capacitron","model","."]
code: def split_model_parameters(model_params: Generator) -> list:
      primary_params = []
      secondary_params = []
      for name, param in model_params:
          if param.requires_grad:
              if name == "capacitron_vae_layer.beta":
                  secondary_params.append(param)
              else:
                  primary_params.append(param)
      return [iter(primary_params), iter(secondary_params)]
  
file_path: TTS/TTS/utils/capacitron_optimizer.py
imports: from typing import Generator
  from trainer.trainer_utils import get_optimizer
label_desc: Use image node_id 7 for calling the CapacitronOptimizer obj's underlying member method code with example usage: obj.split_model_parameters(model_params) and returns: list