(image)
return image
Image augmentation suitable for CIFAR-10/100.

  As described in https://arxiv.org/pdf/1608.06993v3.pdf (page 5).

  Args:
    image: a Tensor.

  Returns:
    Tensor of the same shape as image.
Image augmentation suitable for CIFAR-10/100.
Image augmentation suitable for CIFAR - 10 / 100 .
def _cifar_augment_image(image):
  """Image augmentation suitable for CIFAR-10/100.

  As described in https://arxiv.org/pdf/1608.06993v3.pdf (page 5).

  Args:
    image: a Tensor.

  Returns:
    Tensor of the same shape as image.
  """
  image = tf.image.resize_with_crop_or_pad(image, 40, 40)
  image = tf.image.random_crop(image, [32, 32, 3])
  image = tf.image.random_flip_left_right(image)
  return image
def _cifar_augment_image ( image ) : image = tf . image . resize_with_crop_or_pad ( image , 40 , 40 ) image = tf . image . random_crop ( image , [ 32 , 32 , 3 ] ) image = tf . image . random_flip_left_right ( image ) return image