Last active
May 23, 2019 06:01
-
-
Save keisukefukuda/82ba63a1aa91ecc8e34a73f143529d98 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dataset_info = { | |
'cifar10': {'class_lables': 10, load_func: get_cifar10}, | |
'cifar100': {'class_lables': 100, load_func: get_cifar100}, | |
} | |
if args.dataset not in dataset_info: | |
raise RuntimeError('Invalid dataset choice.') | |
class_labels = dataset_info[args.dataset]['class_labels'] | |
if comm.rank == 0: | |
train, test = dataset_info[args.dataset]['load_func']() | |
else: | |
train, test = None, None | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment