MCPcopy Create free account
hub / github.com/google-research/language / tfrecord_dataset

Function tfrecord_dataset

language/realm/example_generator.py:337–340  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…