Skip to content

Commit efc78f3

Browse files
committed
fix in mnist0-3
1 parent f840af4 commit efc78f3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

utils/dataloaders/mnist_0_3.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,10 @@ def __init__(
7676
self.download = download
7777
self.num_classes = 4
7878

79-
if self.split == "train" or self.split == "validation":
80-
train = True # used to decide whether to load training or test dataset
79+
if self.split == "test":
80+
train = False # used to decide whether to load training or test dataset
81+
else:
82+
train = True
8183

8284
if not self.download and not self._chech_is_downloaded():
8385
raise ValueError(

0 commit comments

Comments
 (0)