(path)
| 335 | dataset = tf.data.Dataset.from_tensor_slices(tf.constant(shard_paths)) |
| 336 | |
| 337 | def tfrecord_dataset(path): |
| 338 | buffer_size = 16 * 1024 * 1024 # Max number of bytes to store. |
| 339 | return tf.data.TFRecordDataset( |
| 340 | path, compression_type='GZIP', buffer_size=buffer_size) |
| 341 | |
| 342 | # `sloppy` mode means that the interleaving is not exact. This adds more |
| 343 | # randomness to the training pipeline. |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…