Skip to content

Commit

Permalink
fix coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
LielinJiang committed Nov 13, 2020
1 parent 8e4d810 commit c248939
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions python/paddle/tests/test_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,12 @@ def test_predict_without_inputs(self):
np.testing.assert_equal(output[0].shape[0], len(self.test_dataset))
fluid.disable_dygraph()

def test_summary_gpu(self):
paddle.disable_static(self.device)
rnn = paddle.nn.LSTM(16, 32, 2)
params_info = paddle.summary(
rnn, [(-1, 23, 16), ((2, None, 32), (2, -1, 32))])


class MyModel(paddle.nn.Layer):
def __init__(self):
Expand Down

1 comment on commit c248939

@paddle-bot-old
Copy link

@paddle-bot-old paddle-bot-old bot commented on c248939 Nov 13, 2020

Choose a reason for hiding this comment

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

🕵️ CI failures summary

🔍PR: #28566 Commit ID: c248939 contains failed CI.

Please sign in to comment.