(self, *batch_files)
| 814 | ) |
| 815 | |
| 816 | def load_images(self, *batch_files): |
| 817 | images = [] |
| 818 | for batch_file in batch_files: |
| 819 | batch = np.fromfile(batch_file, dtype=np.uint8) |
| 820 | batch = batch.reshape(-1, 32*32*3 + 1) |
| 821 | images.append(batch[:, 1:]) |
| 822 | return np.concatenate(images) |
| 823 | |
| 824 | def load_labels(self, meta_file, *batch_files): |
| 825 | classes = [] |
no outgoing calls