class_docstr: Double optimizer class for the Capacitron model.
class_docstr_tok: ["Double","optimizer","class","for","the","Capacitron","model","."]
code: def zero_grad(self, set_to_none=False):
      self.primary_optimizer.zero_grad(set_to_none)
      self.secondary_optimizer.zero_grad(set_to_none)
  
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 4 for calling the CapacitronOptimizer obj's underlying member method code with example usage: obj.zero_grad(set_to_none) without return types