def rc_example(image):
  """Builds an Example proto for an image-caption pair."""
  features = dict(
      unique_ids=io_utils.int64_feature(image.image_id),
      input_ids=io_utils.int64_feature_list(image.input_ids),
      input_mask=io_utils.int64_feature_list(image.input_mask),
      segment_ids=io_utils.int64_feature_list(image.segment_ids),
      start_positions=io_utils.int64_feature(0),
      end_positions=io_utils.int64_feature(0),
      answer_types=io_utils.int64_feature(ANSWER_TYPE))
  return tf.train.Example(features=tf.train.Features(feature=features))
Builds an Example proto for an image-caption pair.
language/capwap/preprocessing/coco_synthetic_qa.py