Skip to content

Commit

Permalink
fix delete (microsoft#950)
Browse files Browse the repository at this point in the history
  • Loading branch information
liususan091219 authored Mar 14, 2023
1 parent 27b2712 commit a3e770e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions flaml/automl/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -732,10 +732,8 @@ def on_epoch_end(self, args, state, control, **callback_kwargs):

def _delete_one_ckpt(self, ckpt_location):
if self._use_ray is False:
try:
if os.path.exists(ckpt_location):
shutil.rmtree(ckpt_location)
except FileNotFoundError:
logger.warning("checkpoint {} not found".format(ckpt_location))

def cleanup(self):
super().cleanup()
Expand Down

0 comments on commit a3e770e

Please sign in to comment.