Skip to content

Instantly share code, notes, and snippets.

@jamescalam
Created April 1, 2020 17:09
Show Gist options
  • Save jamescalam/e84abf2f0ee8135e82c8874c71130931 to your computer and use it in GitHub Desktop.
Save jamescalam/e84abf2f0ee8135e82c8874c71130931 to your computer and use it in GitHub Desktop.
Snippet showing how to split a dataset into sequences with .batch method in TF Dataset object.
sequences = char_dataset.batch(SEQ_LEN+1, drop_remainder=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment