예제 #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)
예제 #2
0
파일: base.py 프로젝트: ronald-xie/SLM-Lab
 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)