Overfit and underfit | TensorFlow Core
www.tensorflow.org › tutorials › kerasNov 19, 2021 · TensorFlow is most efficient when operating on large batches of data. So instead of repacking each row individually make a new Dataset that takes batches of 10000-examples, applies the pack_row function to each batch, and then splits the batches back up into individual records: packed_ds = ds.batch(10000).map(pack_row).unbatch()