Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shrink test_parallel_executor size. #9678

Merged
merged 1 commit into from
Apr 6, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions python/paddle/fluid/tests/unittests/test_parallel_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def bottleneck_block(input, num_filters, stride, cardinality, reduction_ratio):
return fluid.layers.elementwise_add(x=short, y=scale, act='relu')


def SE_ResNeXt152Small(batch_size=2, use_feed=False):
def SE_ResNeXt50Small(batch_size=2, use_feed=False):
assert not use_feed, "SE_ResNeXt doesn't support feed yet"

img = fluid.layers.fill_constant(
Expand All @@ -161,9 +161,9 @@ def SE_ResNeXt152Small(batch_size=2, use_feed=False):
conv = fluid.layers.pool2d(
input=conv, pool_size=3, pool_stride=2, pool_padding=1, pool_type='max')

cardinality = 64
cardinality = 32
reduction_ratio = 16
depth = [3, 8, 36, 3]
depth = [3, 4, 6, 3]
num_filters = [128, 256, 512, 1024]

for block in range(len(depth)):
Expand Down Expand Up @@ -290,7 +290,7 @@ def test_resnet(self):
batch_size = 2
self.check_network_convergence(
functools.partial(
SE_ResNeXt152Small, batch_size=batch_size),
SE_ResNeXt50Small, batch_size=batch_size),
iter=20,
batch_size=batch_size)

Expand Down