def save()

in hype/checkpoint.py [0:0]


    def save(self, params, tries=10):
        try:
            with path_manager.open(self.path, 'wb') as fout:
                torch.save({**self.include_in_all, **params}, fout)
        except Exception as err:
            if tries > 0:
                print(f'Exception while saving ({err})\nRetrying ({tries})')
                time.sleep(60)
                self.save(params, tries=(tries - 1))
            else:
                print("Giving up on saving...")