Skip to content

Commit 976bb82

Browse files
committed
Added EMNIST Test
1 parent a9a6b82 commit 976bb82

File tree

6 files changed

+8
-1
lines changed

6 files changed

+8
-1
lines changed

tensorflow_datasets/image/mnist_test.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,10 @@ class KMNISTTest(MNISTTest):
5050
DATASET_CLASS = mnist.KMNIST
5151

5252

53+
class EMNISTTest(MNISTTest):
54+
DATASET_CLASS = mnist.EMNIST
55+
BUILDER_CONFIG_NAMES_TO_TEST = ["test"]
56+
57+
5358
if __name__ == "__main__":
5459
testing.test_main()

tensorflow_datasets/testing/mnist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def write_label_file(filename, num_labels):
7171

7272

7373
def main(_):
74-
for mnist in ["mnist", "fashion_mnist", "kmnist"]:
74+
for mnist in ["mnist", "fashion_mnist", "kmnist", "emnist"]:
7575
output_dir = mnist_dir(mnist)
7676
test_utils.remake_dir(output_dir)
7777
write_image_file(os.path.join(output_dir, _TRAIN_DATA_FILENAME), 10)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
11111111
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
11111111

0 commit comments

Comments
 (0)