Skip to content

Instantly share code, notes, and snippets.

@alexbrillant
Created October 18, 2020 19:47
Show Gist options
  • Save alexbrillant/0a133d4bdab95a380704d593beca03c8 to your computer and use it in GitHub Desktop.
Save alexbrillant/0a133d4bdab95a380704d593beca03c8 to your computer and use it in GitHub Desktop.
data = data.prefetch(tf.data.experimental.AUTOTUNE)
data = data.cache(filename='tf_data_cache_filename')
data = data.shuffle()
data = data.batch(batch_size=batch_size, drop_remainder=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment