Skip to content

Commit

Permalink
fix test_custom_relu_model
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiqiu committed Apr 25, 2021
1 parent 968d13d commit 16c1564
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,8 @@ def train_model(self, device, use_custom_op=False, use_pe=False):
paddle.set_device(device)

with paddle.static.scope_guard(paddle.static.Scope()):
with paddle.static.program_guard(paddle.static.Program()):
with paddle.static.program_guard(paddle.static.Program(),
paddle.static.Program()):
x = paddle.static.data(
shape=[None, self.in_dim], name='x', dtype='float32')
y = paddle.static.data(
Expand Down

1 comment on commit 16c1564

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