Eager execution coverage for decode_raw_op_test.py. Removed run_deprecated_v1 decorators.

PiperOrigin-RevId: 327043724
Change-Id: I6af2449e89928009696ba01b8d42cf4aae06b021
This commit is contained in:
Hye Soo Yang 2020-08-17 10:07:48 -07:00 committed by TensorFlower Gardener
parent 91bcb88f53
commit c74b67b392

View File

@ -21,7 +21,7 @@ from __future__ import print_function
import numpy as np import numpy as np
from tensorflow.python.framework import dtypes from tensorflow.python.framework import dtypes
from tensorflow.python.framework import test_util from tensorflow.python.framework import ops
from tensorflow.python.ops import array_ops from tensorflow.python.ops import array_ops
from tensorflow.python.ops import parsing_ops from tensorflow.python.ops import parsing_ops
from tensorflow.python.platform import test from tensorflow.python.platform import test
@ -29,8 +29,9 @@ from tensorflow.python.platform import test
class DecodeRawOpTest(test.TestCase): class DecodeRawOpTest(test.TestCase):
@test_util.deprecated_graph_mode_only
def testShapeInference(self): def testShapeInference(self):
# Shape function requires placeholders and a graph.
with ops.Graph().as_default():
for dtype in [dtypes.bool, dtypes.int8, dtypes.uint8, dtypes.int16, for dtype in [dtypes.bool, dtypes.int8, dtypes.uint8, dtypes.int16,
dtypes.uint16, dtypes.int32, dtypes.int64, dtypes.float16, dtypes.uint16, dtypes.int32, dtypes.int64, dtypes.float16,
dtypes.float32, dtypes.float64, dtypes.complex64, dtypes.float32, dtypes.float64, dtypes.complex64,