When dealing with the TFRecord format throughout TensorFlow's API, several objects (classes) come out. However, there are surprisingly many, so it seems that it is difficult to understand. Now let's show the objects hierarchically. tf.Example tf.train.Features tf.train.Feature tf.train.BytesList tf.train.FloatList tf.train.Int64List Fundamentally, a tf.train.Example is a {"string": tf.train.Feature} mapping. The tf.train.Feature message type can accept one of the three types( tf.train.BytesList , tf.train.FloatList , and tf.train.Int64List ). Each function takes a scalar input value and returns a tf.train.Feature containing one of the three list types. See https://www.tensorflow.org/tutorials/load_data/tfrecord#creating_a_tftrainexample_message import tensorflow as tf int64_list = tf.train.Int64List(value=[1, 2, 3, 4]) # Or dict can be taken. # int64_list = dict(value=[1, 2, 3, 4]) int64_feature = tf.trai...
I am a pythoner since 2020. I will write here my dairy about python, my hobby, and...