def rotate(image, degrees):
    'Equivalent of PIL Rotation.'
    degrees_to_radians = (math.pi / 180.0)
    radians = (degrees * degrees_to_radians)
    image = tfa_image.transform_ops.rotate(wrap(image), radians)
    return unwrap(image)
Equivalent of PIL Rotation.
def rotate(image, degrees):
    
    degrees_to_radians = (math.pi / 180.0)
    radians = (degrees * degrees_to_radians)
    image = tfa_image.transform_ops.rotate(wrap(image), radians)
    return unwrap(image)