Skip to content

Instantly share code, notes, and snippets.

@jamescalam
Created April 1, 2020 17:08
Show Gist options
  • Save jamescalam/7ed5dc4d4effb852595114c7bb9c885a to your computer and use it in GitHub Desktop.
Save jamescalam/7ed5dc4d4effb852595114c7bb9c885a to your computer and use it in GitHub Desktop.
Snippet of how to convert indexed data into a TF Dataset object.
char_dataset = tf.data.Dataset.from_tensor_slices(data_idx)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment