Skip to content

Commit

Permalink
delete useless unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
DesmonDay committed Apr 6, 2022
1 parent bda18e2 commit e20f999
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions python/paddle/fluid/tests/unittests/test_one_hot_v2_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,24 +117,6 @@ def test_check_output(self):
self.check_output()


class TestOneHotOp_out_of_range(OpTest):
def setUp(self):
self.op_type = 'one_hot_v2'
depth = 10
x_lod = [[4, 1, 3, 3]]
x = [np.random.choice([-1, depth]) for i in range(sum(x_lod[0]))]
x = np.array(x).astype('int32').reshape([sum(x_lod[0])])

out = np.zeros(shape=(np.product(x.shape), depth)).astype('float32')

self.inputs = {'X': (x, x_lod)}
self.attrs = {'depth': depth, 'allow_out_of_range': True}
self.outputs = {'Out': (out, x_lod)}

def test_check_output(self):
self.check_output()


class TestOneHotOp_exception(unittest.TestCase):
def setUp(self):
self.op_type = 'one_hot_v2'
Expand Down

1 comment on commit e20f999

@paddle-bot-old
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Congratulation! Your pull request passed all required CI. You could ask reviewer(s) to approve and merge. 🎉

Please sign in to comment.