Skip to content

Commit

Permalink
fix minor bug
Browse files Browse the repository at this point in the history
  • Loading branch information
gc031298 committed Feb 4, 2025
1 parent 5d189cc commit f6a57ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pina/data/data_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ def _apply_shuffle(condition_dict, len_data):
dataset_dict[key].update({condition_name: data})
return dataset_dict


def _create_dataloader(self, split, dataset):
shuffle = self.shuffle if split == 'train' else False
# Use custom batching (good if batch size is large)
Expand Down Expand Up @@ -313,7 +314,7 @@ def test_dataloader(self):
"""
Create the testing dataloader
"""
raise self._create_dataloader('test', self.test_dataset)
return self._create_dataloader('test', self.test_dataset)

def predict_dataloader(self):
"""
Expand Down

0 comments on commit f6a57ef

Please sign in to comment.