Skip to content

Commit 653dde5

Browse files
committed
remove unneccessary tf.reset_default_graph()
1 parent 7dfda8a commit 653dde5

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

tests/test_backend.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1789,23 +1789,20 @@ def func(x, y):
17891789

17901790
@check_opset_min_version(10, "Slice")
17911791
def test_strided_slice_reverse_1(self):
1792-
tf.reset_default_graph()
17931792
x_val = np.arange(16 * 32).astype(np.float32).reshape((1, 16, 32, 1))
17941793
def func(x):
17951794
return tf.concat([x[:, :, :10], x[:, :, :21:-1]], axis=0, name=_TFOUTPUT)
17961795
self._run_test_case(func, [_OUTPUT], {_INPUT: x_val})
17971796

17981797
@check_opset_min_version(10, "Slice")
17991798
def test_strided_slice_reverse_2(self):
1800-
tf.reset_default_graph()
18011799
x_val = np.arange(16 * 32).astype(np.float32).reshape((1, 16, 32, 1))
18021800
def func(x):
18031801
return tf.concat([x[:, :, :10], x[:, :, 9::-1]], axis=0, name=_TFOUTPUT)
18041802
self._run_test_case(func, [_OUTPUT], {_INPUT: x_val})
18051803

18061804
@check_opset_min_version(10, "Slice")
18071805
def test_strided_slice_reverse_3(self):
1808-
tf.reset_default_graph()
18091806
x_val = np.zeros((1, 16, 32, 1)).astype(np.float32)
18101807
y_val = np.array(9).astype(np.int32)
18111808
z_val = np.array(-1).astype(np.int32)

0 commit comments

Comments
 (0)