def finalize(self):
    '\n        Finalize all the operations of the 2 Main classes of the process the operator and the data loader\n        :return:\n        '
    self.logger.info('Please wait while finalizing the operation.. Thank you')
    self.save_checkpoint()
    self.summary_writer.export_scalars_to_json('{}all_scalars.json'.format(self.config.summary_dir))
    self.summary_writer.close()
Finalize all the operations of the 2 Main classes of the process the operator and the data loader
:return:
def finalize(self):
    '\n        Finalize all the operations of the 2 Main classes of the process the operator and the data loader\n        :return:\n        '
    self.logger.info('Please wait while finalizing the operation.. Thank you')
    self.save_checkpoint()
    self.summary_writer.export_scalars_to_json('{}all_scalars.json'.format(self.config.summary_dir))
    self.summary_writer.close()