@@ -1789,23 +1789,20 @@ def func(x, y):
1789
1789
1790
1790
@check_opset_min_version (10 , "Slice" )
1791
1791
def test_strided_slice_reverse_1 (self ):
1792
- tf .reset_default_graph ()
1793
1792
x_val = np .arange (16 * 32 ).astype (np .float32 ).reshape ((1 , 16 , 32 , 1 ))
1794
1793
def func (x ):
1795
1794
return tf .concat ([x [:, :, :10 ], x [:, :, :21 :- 1 ]], axis = 0 , name = _TFOUTPUT )
1796
1795
self ._run_test_case (func , [_OUTPUT ], {_INPUT : x_val })
1797
1796
1798
1797
@check_opset_min_version (10 , "Slice" )
1799
1798
def test_strided_slice_reverse_2 (self ):
1800
- tf .reset_default_graph ()
1801
1799
x_val = np .arange (16 * 32 ).astype (np .float32 ).reshape ((1 , 16 , 32 , 1 ))
1802
1800
def func (x ):
1803
1801
return tf .concat ([x [:, :, :10 ], x [:, :, 9 ::- 1 ]], axis = 0 , name = _TFOUTPUT )
1804
1802
self ._run_test_case (func , [_OUTPUT ], {_INPUT : x_val })
1805
1803
1806
1804
@check_opset_min_version (10 , "Slice" )
1807
1805
def test_strided_slice_reverse_3 (self ):
1808
- tf .reset_default_graph ()
1809
1806
x_val = np .zeros ((1 , 16 , 32 , 1 )).astype (np .float32 )
1810
1807
y_val = np .array (9 ).astype (np .int32 )
1811
1808
z_val = np .array (- 1 ).astype (np .int32 )
0 commit comments