Skip to content

Commit

Permalink
refine the code test=develop
Browse files Browse the repository at this point in the history
  • Loading branch information
wangchaochaohu committed Aug 17, 2020
1 parent 322a408 commit e474bc1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/paddle/fluid/tests/unittests/test_chunk_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import paddle


class TestCunkOpError(unittest.TestCase):
class TestChunkOpError(unittest.TestCase):
def test_errors(self):
with program_guard(Program(), Program()):
# The type of axis in chunk_op should be int or Variable.
Expand Down Expand Up @@ -54,7 +54,7 @@ def test_axis_type_tensor():
self.assertRaises(TypeError, test_axis_type_tensor)


class API_TestSplit(unittest.TestCase):
class API_TestChunk(unittest.TestCase):
def test_out(self):
with fluid.program_guard(fluid.Program(), fluid.Program()):
data1 = paddle.data('data1', shape=[4, 6, 6], dtype='float64')
Expand All @@ -73,7 +73,7 @@ def test_out(self):
self.assertTrue(np.allclose(ex_x2, r2))


class API_TestSplit2(unittest.TestCase):
class API_TestChunk1(unittest.TestCase):
def test_out(self):
with fluid.program_guard(fluid.Program(), fluid.Program()):
data1 = paddle.data('data1', shape=[4, 6, 6], dtype='float64')
Expand All @@ -89,7 +89,7 @@ def test_out(self):
self.assertTrue(np.allclose(ex_x2, r2))


class API_TestDygraphSplit(unittest.TestCase):
class API_TestDygraphChunk(unittest.TestCase):
def test_out1(self):
with fluid.dygraph.guard():
input_1 = np.random.random([4, 6, 6]).astype("int32")
Expand Down

0 comments on commit e474bc1

Please sign in to comment.