To create a TF Record:
- Open a TFRecords file using
tf.python_io.TFRecordWriter
- Convert your data into the proper data type of the feature using
tf.train.Int64List
,tf.train.BytesList
, ortf.train.FloatList
- Create a feature using
tf.train.Feature
and pass the converted data to it - Create an Example protocol buffer using
tf.train.Example
and pass the feature to it