Commit 428d90ce authored by Gustaf Ahdritz's avatar Gustaf Ahdritz
Browse files

Fix bug in dummy dataset

parent 94ab346e
......@@ -453,7 +453,7 @@ class OpenFoldDataModule(pl.LightningDataModule):
class DummyDataset(torch.utils.data.Dataset):
def __init__(self, batch_path):
with open(batch_path, "rb") as f:
batch = pickle.load(f)
self.batch = pickle.load(f)
def __getitem__(self, idx):
return copy.deepcopy(self.batch)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment