Skip to content

Instantly share code, notes, and snippets.

@AyishaR
Created January 5, 2021 10:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AyishaR/ca697ec84df57389eaa22c2949c0067f to your computer and use it in GitHub Desktop.
Save AyishaR/ca697ec84df57389eaa22c2949c0067f to your computer and use it in GitHub Desktop.
AUTOTUNE = tf.data.experimental.AUTOTUNE
train_ds = train_ds.cache().prefetch(buffer_size = AUTOTUNE)
val_ds = val_ds.cache().prefetch(buffer_size = AUTOTUNE)
test_ds = test_ds.cache().prefetch(buffer_size = AUTOTUNE)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment