Created
April 1, 2020 17:09
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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