(dir_path='/tmp/cifar-10-batches-py')
| 55 | |
| 56 | |
| 57 | def load_test_data(dir_path='/tmp/cifar-10-batches-py'): # need to save to specific local directories |
| 58 | images, labels = load_dataset(check_dataset_exist(dir_path + "/test_batch")) |
| 59 | return np.array(images, dtype=np.float32), np.array(labels, dtype=np.int32) |
| 60 | |
| 61 | |
| 62 | def check_dataset_exist(dirpath): |
no test coverage detected