class_docstr: Callback to handle GAN Training.
class_docstr_tok: ["Callback","to","handle","GAN","Training","."]
docstr: Switch in generator mode for showing results.
docstr_tok: ["Switch","in","generator","mode","for","showing","results","."]
code: def before_validate(self):
      "Switch in generator mode for showing results."
      self.switch(gen_mode=True)
  
imports: from __future__ import annotations
  from ..basics import *
  from .all import *
label_desc: Use image node_id 4 for calling the GANTrainer obj's underlying member method code with example usage: obj.before_validate() without return types