File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed
python/paddle/fluid/tests/unittests Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -117,24 +117,6 @@ def test_check_output(self):
117117 self .check_output ()
118118
119119
120- class TestOneHotOp_out_of_range (OpTest ):
121- def setUp (self ):
122- self .op_type = 'one_hot_v2'
123- depth = 10
124- x_lod = [[4 , 1 , 3 , 3 ]]
125- x = [np .random .choice ([- 1 , depth ]) for i in range (sum (x_lod [0 ]))]
126- x = np .array (x ).astype ('int32' ).reshape ([sum (x_lod [0 ])])
127-
128- out = np .zeros (shape = (np .product (x .shape ), depth )).astype ('float32' )
129-
130- self .inputs = {'X' : (x , x_lod )}
131- self .attrs = {'depth' : depth , 'allow_out_of_range' : True }
132- self .outputs = {'Out' : (out , x_lod )}
133-
134- def test_check_output (self ):
135- self .check_output ()
136-
137-
138120class TestOneHotOp_exception (unittest .TestCase ):
139121 def setUp (self ):
140122 self .op_type = 'one_hot_v2'
You can’t perform that action at this time.
0 commit comments