Args: size (int): total number of records. If not provided, the returned dataflow will have no `__len__()`. It's needed because this metadata is not stored in the TFRecord file.
(path, size=None)
| 171 | |
| 172 | @staticmethod |
| 173 | def load(path, size=None): |
| 174 | """ |
| 175 | Args: |
| 176 | size (int): total number of records. If not provided, the returned dataflow will have no `__len__()`. |
| 177 | It's needed because this metadata is not stored in the TFRecord file. |
| 178 | """ |
| 179 | gen = tf.python_io.tf_record_iterator(path) |
| 180 | ds = DataFromGenerator(gen) |
| 181 | ds = MapData(ds, loads) |
| 182 | if size is not None: |
| 183 | ds = FixedSizeData(ds, size) |
| 184 | return ds |
| 185 | |
| 186 | |
| 187 | class HDF5Serializer(): |
nothing calls this directly
no test coverage detected