Skip to content

Instantly share code, notes, and snippets.

@Mistobaan
Created May 22, 2020 22:36
Show Gist options
  • Save Mistobaan/8084c6f78467510c325e14af4523c646 to your computer and use it in GitHub Desktop.
Save Mistobaan/8084c6f78467510c325e14af4523c646 to your computer and use it in GitHub Desktop.
# The #power of a good #API #design: implement a whole paper in 2 lines of code and get 3x faster results:
dataset.flat_map( lambda t:
tf.data.Dataset.from_tensors(t).repeat(e))
# from: Faster #NeuralNetwork Training with #Data Echoing https://arxiv.org/pdf/1907.05550.pdf #Tensorflow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment