(path, shuffle=True)
| 143 | |
| 144 | @staticmethod |
| 145 | def load(path, shuffle=True): |
| 146 | # allow_pickle defaults to False since numpy 1.16.3 |
| 147 | # (https://www.numpy.org/devdocs/release.html#unpickling-while-loading-requires-explicit-opt-in) |
| 148 | buffer = np.load(path, allow_pickle=True)['buffer'] |
| 149 | return DataFromList(buffer, shuffle=shuffle) |
| 150 | |
| 151 | |
| 152 | class TFRecordSerializer(): |
nothing calls this directly
no test coverage detected