Skip to content

Commit

Permalink
Also Fix Other Unittests by Decrease Batch Size
Browse files Browse the repository at this point in the history
  • Loading branch information
zhhsplendid committed Apr 23, 2021
1 parent e5f28fd commit 07d72a8
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/seresnext_net.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def optimizer(learning_rate=0.01):
def batch_size(use_device):
if use_device == DeviceType.CUDA:
# Paddle uses 8GB P4 GPU for unittest so we decreased the batch size.
return 8
return 4
return 12


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def check_network_convergence(self,
train_data = paddle.batch(
paddle.reader.shuffle(
paddle.dataset.conll05.test(), buf_size=8192),
batch_size=16)
batch_size=8)

place = fluid.CUDAPlace(0) if use_cuda else fluid.CPUPlace()
exe = fluid.Executor(place)
Expand Down

1 comment on commit 07d72a8

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