message: Add test case for shape of adjust_contrast
diff: @@ -1410,6 +1410,14 @@ class AdjustContrastTest(test_util.TensorFlowTestCase):
  y_tf = self._adjustContrastTf(x_np, contrast_factor)
  self.assertAllClose(y_tf, y_np, rtol=1e-5, atol=1e-5)
  + def testContrastFactorShape(self):
  + x_shape = [1, 2, 2, 3]
  + x_data = [0, 5, 13, 54, 135, 226, 37, 8, 234, 90, 255, 1]
  + x_np = np.array(x_data, dtype=np.uint8).reshape(x_shape)
  + with self.assertRaisesRegexp(
  + ValueError, 'Shape must be rank 0 but is rank 1'):
  + image_ops.adjust_contrast(x_np, [2.0])
  +
  class AdjustBrightnessTest(test_util.TensorFlowTestCase):
  