Skip to content

Commit 4fdeec0

Browse files
authored
Merge branch 'main' into christian/update-dataloader-recall
2 parents 7854122 + 3992e68 commit 4fdeec0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CollaborativeCoding/dataloaders/download.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ def _chech_is_downloaded(path: Path) -> bool:
5656
return False
5757

5858
def _download_data(path: Path) -> None:
59+
path = path / "MNIST"
5960
urls = {key: MNIST_SOURCE[key][0] for key in MNIST_SOURCE.keys()}
6061

6162
for name, url in urls.items():

tests/test_dataloaders.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ def test_load_data(data_name, expected):
3636
assert isinstance(dataset[0][0], torch.Tensor)
3737
assert isinstance(
3838
dataset[0][1], (int, torch.Tensor, np.ndarray)
39-
) # Should probably restrict this to only int or one-hot encoded tensor or array for consistency.
39+
) # Should probably restrict this to only int or one-hot encoded tensor or array for consistency.

0 commit comments

Comments
 (0)