(dir_path='/scratch/snx3000/lyongbin/singa_my/cifar10_log/cifar-10-batches-py')
| 57 | |
| 58 | #def load_test_data(dir_path='/scratch1/07801/nusbin20/gordon-bell/cifar-10-batches-py'): |
| 59 | def 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 | |
| 64 | def check_dataset_exist(dirpath): |
no test coverage detected