Fix MNIST test data loading, add named buffer summary
This commit is contained in:
parent
ced13a4351
commit
7db99ffa51
3 changed files with 10 additions and 3 deletions
|
|
@ -61,6 +61,6 @@ def load_data(data_path: str, flatten: bool = False) -> Tuple[np.ndarray, np.nda
|
|||
train_images = load_image_file(os.path.join(data_path, train_images_filename), flatten=flatten)
|
||||
train_labels = load_label_file(os.path.join(data_path, train_labels_filename))
|
||||
test_images = load_image_file(os.path.join(data_path, test_images_filename), flatten=flatten)
|
||||
test_labels = load_label_file(os.path.join(data_path, train_labels_filename))
|
||||
test_labels = load_label_file(os.path.join(data_path, test_labels_filename))
|
||||
|
||||
return train_images, train_labels, test_images, test_labels
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue