reader = tf.TFRecordReader()
_, serialized_example = reader.read(filename_queue)
batch_serialized_examples = tf.shuffle_batch([serialized_example], batch_size)
feature_to_type = {'label': tf.FixedLenFeature([1], dtype=tf.int64),
    'sparse_feature': tf.VarLenFeature(dtype=tf.int64)}
features = tf.parse_example(batch_serialized_examples, feature_to_type)
How to load sparse data with TensorFlow?