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

Function load_train_data

examples/cnn/data/cifar100.py:43–45  ·  view source on GitHub ↗
(dir_path='/tmp/cifar-100-python')

Source from the content-addressed store, hash-verified

41
42
43def load_train_data(dir_path='/tmp/cifar-100-python'):
44 images, labels = load_dataset(check_dataset_exist(dir_path + "/train"))
45 return np.array(images, dtype=np.float32), np.array(labels, dtype=np.int32)
46
47
48def load_test_data(dir_path='/tmp/cifar-100-python'):

Callers 1

loadFunction · 0.70

Calls 2

load_datasetFunction · 0.70
check_dataset_existFunction · 0.70

Tested by

no test coverage detected