Skip to content

Commit

Permalink
Small bug
Browse files Browse the repository at this point in the history
  • Loading branch information
RandomDefaultUser committed Apr 26, 2024
1 parent bd68063 commit 3cebb9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mala/network/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ def __prepare_to_train(self, optimizer_dict):
)

if self.parameters_full.use_distributed_sampler_test:
if self.data.test_data_sets is not None:
if self.data.test_data_sets:
self.test_sampler = (
torch.utils.data.distributed.DistributedSampler(
self.data.test_data_sets[0],
Expand Down

0 comments on commit 3cebb9d

Please sign in to comment.