Datasets:

Languages:
English
Multilinguality:
monolingual
Size Categories:
10K<n<100K
Language Creators:
found
Annotations Creators:
expert-generated
Source Datasets:
original
ArXiv:
Tags:
License:
mariosasko commited on
Commit
81a1a5a
1 Parent(s): df5c2bf

Use `tuple` instead of `list` in `gen_kwargs` to avoid `IterableDataset.shuffle` error (#3)

Browse files

- Use `tuple` instead of `list` in `gen_kwargs` to avoid `IterableDataset.shuffle` error (cdf85dbe6c432eac52669407f03c71bb591ed460)

Files changed (1) hide show
  1. fashion_mnist.py +2 -2
fashion_mnist.py CHANGED
@@ -111,14 +111,14 @@ class FashionMnist(datasets.GeneratorBasedBuilder):
111
  datasets.SplitGenerator(
112
  name=datasets.Split.TRAIN,
113
  gen_kwargs={
114
- "filepath": [downloaded_files["train_images"], downloaded_files["train_labels"]],
115
  "split": "train",
116
  },
117
  ),
118
  datasets.SplitGenerator(
119
  name=datasets.Split.TEST,
120
  gen_kwargs={
121
- "filepath": [downloaded_files["test_images"], downloaded_files["test_labels"]],
122
  "split": "test",
123
  },
124
  ),
111
  datasets.SplitGenerator(
112
  name=datasets.Split.TRAIN,
113
  gen_kwargs={
114
+ "filepath": (downloaded_files["train_images"], downloaded_files["train_labels"]),
115
  "split": "train",
116
  },
117
  ),
118
  datasets.SplitGenerator(
119
  name=datasets.Split.TEST,
120
  gen_kwargs={
121
+ "filepath": (downloaded_files["test_images"], downloaded_files["test_labels"]),
122
  "split": "test",
123
  },
124
  ),