Skip to content

Commit

Permalink
fix flatten infershape; test=develop
Browse files Browse the repository at this point in the history
  • Loading branch information
danleifeng committed Sep 2, 2021
1 parent 97cb74e commit e413190
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/paddle/fluid/tests/unittests/test_flatten2_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def init_test_case(self):
self.new_shape = (36, 16)


class TestStaticFlattenPythonAPI(unittest.TestCase):
class TestStaticFlattenInferShapePythonAPI(unittest.TestCase):
def execute_api(self, x, axis=1):
return fluid.layers.flatten(x, axis=axis)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def test_static_api(self):
self.assertTrue((2, 3, 16) == fetch_out[0].shape)


class TestStaticFlattenPythonAPI(unittest.TestCase):
class TestStaticFlattenInferShapePythonAPI(unittest.TestCase):
def execute_api(self, x, start_axis=0, stop_axis=-1):
return paddle.flatten(x, start_axis, stop_axis)

Expand Down

1 comment on commit e413190

@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.