def convert_real_to_rgb(x):
  """Conversion of real numbers to pixel values."""
  with tf.name_scope("real_to_rgb", values=[x]):
    x *= 255.0
    return x
Conversion of real numbers to pixel values.
tensor2tensor/layers/common_layers.py