import tensorflow as tf

    image.set_shape(shape)
    return tf.cast(image, dtype)

  def serving_input_receiver_fn():
    image_bytes_list = tf.placeholder(
        shape=[None],
        dtype=tf.string,
    )
