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.Featureand pass the converted data to it - Create an Example protocol buffer using
tf.train.Exampleand pass the feature to it