Esempio n. 1
0
 def save(self, ckpt=None):
     '''Save net models for algorithm given the required property self.net_names'''
     if not hasattr(self, 'net_names'):
         logger.info(
             'No net declared in self.net_names in init_nets(); no models to save.'
         )
     else:
         net_util.save_algorithm(self, ckpt=ckpt)
Esempio n. 2
0
 def save(self, epi=None):
     '''Save net models for algorithm given the required property self.net_names'''
     if not hasattr(self, 'net_names'):
         logger.info('No net declared in self.net_names in init_nets(); no models to save.')
     else:
         net_util.save_algorithm(self, epi=epi)