Train hooks provide training events and loss modification to trainers.
gan.trainer.train_hooks # => [...]
Train hooks are setup and invoked by the trainer.
Override these methods to change the train loop
Executed before/after the step takes place.
feed_dictis what is being sent to the graph during the training step.
Ran after the trainer is created.
Refines the gradients before they are applied to the optimizer.