message: Eager execution coverage for image_ops_test.py. Removed `run_deprecated_v1` decorators.
  Part 3 (class PerImageWhiteningTest, AdjustContrastTest)
diff: @@ -1564,12 +1564,12 @@ 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)
  - @test_util.run_deprecated_v1
  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.assertRaisesRegex(ValueError,
  + with self.assertRaisesRegex((ValueError, errors.InvalidArgumentError),
  + "contrast_factor must be scalar|"
  "Shape must be rank 0 but is rank 1"):
  image_ops.adjust_contrast(x_np, [2.0])
  @@ -1637,7 +1637,6 @@ class PerImageWhiteningTest(test_util.TensorFlowTestCase):
  y /= stddev
  return y
  - @test_util.run_deprecated_v1
  def testBasic(self):
  x_shape = [13, 9, 3]
  x_np = np.arange(0, np.prod(x_shape), dtype=np.float32).reshape(x_shape)
  @@ -1646,7 +1645,6 @@ class PerImageWhiteningTest(test_util.TensorFlowTestCase):
  with self.cached_session(use_gpu=True):
  x = constant_op.constant(x_np, shape=x_shape)
  y = image_ops.per_image_standardization(x)
  - self.assertTrue(y.op.name.startswith("per_image_standardization"))
  y_tf = self.evaluate(y)
  self.assertAllClose(y_tf, y_np, atol=1e-4)
  