Skip to content

Instantly share code, notes, and snippets.

@ntakouris
Created July 8, 2020 13:04
Show Gist options
  • Save ntakouris/ce7010b0d8f258f165ec1d9b628da675 to your computer and use it in GitHub Desktop.
Save ntakouris/ce7010b0d8f258f165ec1d9b628da675 to your computer and use it in GitHub Desktop.
raw_data = [
{'x': 1, 'y': 1, 's': 'hello'},
{'x': 2, 'y': 2, 's': 'world'},
{'x': 3, 'y': 3, 's': 'hello'}
]
raw_data_metadata = dataset_metadata.DatasetMetadata(
dataset_schema.from_feature_spec({
'y': tf.io.FixedLenFeature([], tf.float32),
'x': tf.io.FixedLenFeature([], tf.float32),
's': tf.io.FixedLenFeature([], tf.string),
}))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment