Skip to content

Commit dbb65b9

Browse files
committed
Update test_checkpoint_io_plugin.py
1 parent 36d192e commit dbb65b9

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

tests/plugins/test_checkpoint_io_plugin.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,10 @@
2727

2828

2929
class CustomCheckpointIO(CheckpointIO):
30-
save_checkpoint_called: bool = False
31-
load_checkpoint_called: bool = False
32-
3330
def save_checkpoint(self, checkpoint: Dict[str, Any], path: _PATH, storage_options: Optional[Any] = None) -> None:
34-
self.save_checkpoint_called = True
3531
torch.save(checkpoint, path)
3632

3733
def load_checkpoint(self, path: _PATH, storage_options: Optional[Any] = None) -> Dict[str, Any]:
38-
self.load_checkpoint_called = True
3934
return torch.load(path)
4035

4136

0 commit comments

Comments
 (0)