Skip to content

Commit

Permalink
fix odc hook
Browse files Browse the repository at this point in the history
  • Loading branch information
XiaohangZhan committed Jun 17, 2020
1 parent 6a5dd91 commit 47ce648
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openselfsup/hooks/odc_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def after_train_iter(self, runner):

def after_train_epoch(self, runner):
# save cluster
if self.every_n_epochs(10) and runner.rank == 0:
if self.every_n_epochs(runner, 10) and runner.rank == 0:
new_labels = runner.model.module.memory_bank.label_bank
if new_labels.is_cuda:
new_labels = new_labels.cpu()
Expand Down

0 comments on commit 47ce648

Please sign in to comment.