(example_string)
return parsed_example
Reads the string and decodes the image.
Reads the string and decodes the image.
Reads the string and decodes the image .
def read_example_and_parse_image(example_string):
  """Reads the string and decodes the image."""
  parsed_example = read_single_example(example_string)
  image_decoded = tf.image.decode_image(parsed_example['image'], channels=3)
  image_decoded.set_shape([None, None, 3])
  parsed_example['image'] = image_decoded
  return parsed_example
def read_example_and_parse_image ( example_string ) : parsed_example = read_single_example ( example_string ) image_decoded = tf . image . decode_image ( parsed_example [ 'image' ] , channels = 3 ) image_decoded . set_shape ( [ None , None , 3 ] ) parsed_example [ 'image' ] = image_decoded return parsed_example