def finalize(self):
        self._print_stat()
        self.stat_history.append(self.stat_now)
        self.stat_now = {}
        self._write_stat()
Called after finishing adding stats. Will print and write stats to disk.
dataset/ETHPy150Open ppwwyyxx/tensorpack/tensorpack/callbacks/summary.py/StatHolder.finalize