Skip to content

Instantly share code, notes, and snippets.

@junjuew
Created November 18, 2019 21:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save junjuew/b0578e9b486df7461f40435ddbc0c787 to your computer and use it in GitHub Desktop.
Save junjuew/b0578e9b486df7461f40435ddbc0c787 to your computer and use it in GitHub Desktop.
Python One-Liner to Show a Single Example from TFRecord
python -c 'import sys; import tensorflow as tf; ex=next(tf.python_io.tf_record_iterator(sys.argv[1])); print(tf.train.Example.FromString(ex))' <path-to-tfrecord>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment