def before_train(self, trainer):
        self.trainer = trainer
        self.graph = tf.get_default_graph()
        self.epoch_num = self.trainer.config.starting_epoch
        self._before_train()
Called before starting iterative training.
dataset/ETHPy150Open ppwwyyxx/tensorpack/tensorpack/callbacks/base.py/Callback.before_train