Skip to content

Instantly share code, notes, and snippets.

@sgodfrey66
Last active June 16, 2020 14:50
Show Gist options
  • Save sgodfrey66/33c17872aea3a5e853da4f4fd3fcbca2 to your computer and use it in GitHub Desktop.
Save sgodfrey66/33c17872aea3a5e853da4f4fd3fcbca2 to your computer and use it in GitHub Desktop.
# Load a dataset
tensorflow_datasets.load
# Iterate through a dataset
tensorflow.data.Dataset.__iter__()
# Shuffle a dataset
tensorflow.data.Dataset.shuffle()
# Batch a dataset
tensorflow.data.Dataset.batch()
# Map a function to Dataset elements
tensorflow.data.Dataset.map()
# Get the numeric values of an example
EagerTensor.numpy()
# Get the shape of an example
EagerTensor.shape
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment