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

Function check_dataset_exist

examples/cnn/data/cifar10.py:62–68  ·  view source on GitHub ↗
(dirpath)

Source from the content-addressed store, hash-verified

60
61
62def check_dataset_exist(dirpath):
63 if not os.path.exists(dirpath):
64 print(
65 'Please download the cifar10 dataset using python data/download_cifar10.py'
66 )
67 sys.exit(0)
68 return dirpath
69
70
71def 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