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

Function load_test_data

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

Source from the content-addressed store, hash-verified

46
47
48def load_test_data(dir_path='/tmp/cifar-100-python'):
49 images, labels = load_dataset(check_dataset_exist(dir_path + "/test"))
50 return np.array(images, dtype=np.float32), np.array(labels, dtype=np.int32)
51
52
53def check_dataset_exist(dirpath):

Callers 1

loadFunction · 0.70

Calls 2

load_datasetFunction · 0.70
check_dataset_existFunction · 0.70

Tested by

no test coverage detected