I am using colab to run a tutorial on tensorflow ranking. It uses wget to fetch the tfrecord:
!wget -O "/tmp/train.tfrecords" "http://ciir.cs.umass.edu/downloads/Antique/tf-ranking/ELWC/train.tfrecords"
I am using this code to try to look at the structure of the tfrecord:
for example in tf.compat.v1.python_io.tf_record_iterator("/tmp/train.tfrecords"):
print(tf.train.Example.FromString(example))
break
And I am getting:
DecodeError: Error parsing message
How to generally look at the structure of tfrecords instead?
A second question: Where to find documentation on classes like tf.train.Example? I just find this empty page.