Skip to content

Commit

Permalink
Fixed none check
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardyehuang committed Mar 29, 2023
1 parent ce63977 commit e273dfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modelhelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def restore_checkpoint(self):

last_checkpoint = self.ckpt_manager.latest_checkpoint

if last_checkpoint != None:
if last_checkpoint is not None:
self.ckpt.restore(last_checkpoint).expect_partial()

return last_checkpoint
Expand Down

0 comments on commit e273dfc

Please sign in to comment.