Skip to content

Commit e20f999

Browse files
committed
delete useless unittest
1 parent bda18e2 commit e20f999

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

python/paddle/fluid/tests/unittests/test_one_hot_v2_op.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff 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-
138120
class TestOneHotOp_exception(unittest.TestCase):
139121
def setUp(self):
140122
self.op_type = 'one_hot_v2'

0 commit comments

Comments
 (0)