class_docstr: Callback to handle GAN Training.
class_docstr_tok: ["Callback","to","handle","GAN","Training","."]
docstr: Put the critic or the generator back to eval if necessary.
docstr_tok: ["Put","the","critic","or","the","generator","back","to","eval","if","necessary","."]
code: def before_epoch(self):
      "Put the critic or the generator back to eval if necessary."
      self.switch(self.gen_mode)
  
imports: from __future__ import annotations
  from ..basics import *
  from .all import *
label_desc: Use image node_id 7 for calling the GANTrainer obj's underlying member method code with example usage: obj.before_epoch() without return types