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

Function load_test_data

examples/singa_peft/examples/data/cifar10.py:59–61  ·  view source on GitHub ↗
(dir_path='/scratch/snx3000/lyongbin/singa_my/cifar10_log/cifar-10-batches-py')

Source from the content-addressed store, hash-verified

57
58#def load_test_data(dir_path='/scratch1/07801/nusbin20/gordon-bell/cifar-10-batches-py'):
59def load_test_data(dir_path='/scratch/snx3000/lyongbin/singa_my/cifar10_log/cifar-10-batches-py'):
60 images, labels = load_dataset(check_dataset_exist(dir_path + "/test_batch"))
61 return np.array(images, dtype=np.float32), np.array(labels, dtype=np.int32)
62
63
64def 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