MCPcopy Create free account
hub / github.com/apache/singa / check_dataset_exist

Function check_dataset_exist

examples/cnn/data/cifar100.py:53–59  ·  view source on GitHub ↗
(dirpath)

Source from the content-addressed store, hash-verified

51
52
53def check_dataset_exist(dirpath):
54 if not os.path.exists(dirpath):
55 print(
56 'Please download the cifar100 dataset using python data/download_cifar100.py'
57 )
58 sys.exit(0)
59 return dirpath
60
61
62def normalize(train_x, val_x):

Callers 2

load_train_dataFunction · 0.70
load_test_dataFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected