docstr: Sets the gradients of all optimized `torch.Tensor`s to zero.
docstr_tok: ["Sets","the","gradients","of","all","optimized","`","torch.Tensor","`","s","to","zero","."]
code: def zero_grad(self, set_to_none=False):
      """Sets the gradients of all optimized `torch.Tensor`s to zero."""
      self.g_optimizer.zero_grad(set_to_none)
      self.d_optimizer.zero_grad(set_to_none)
  
file_path: speechbrain/tests/integration/enhance_GAN/example_enhance_gan_experiment.py
imports: import torch
  import pathlib
  import speechbrain
  from hyperpyyaml import load_hyperpyyaml
label_desc: Use image node_id 7 for calling the EnhanceGanBrain obj's underlying member method code with example usage: obj.zero_grad(set_to_none) without return types