From 030a3db20ffdf5c93f453cea4d9cbff5dbb48419 Mon Sep 17 00:00:00 2001 From: xzl Date: Wed, 12 Jul 2017 21:09:49 +0800 Subject: [PATCH] the groups default should be None --- python/paddle/trainer_config_helpers/layers.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python/paddle/trainer_config_helpers/layers.py b/python/paddle/trainer_config_helpers/layers.py index 40ac3698bb2..351bd8fea81 100755 --- a/python/paddle/trainer_config_helpers/layers.py +++ b/python/paddle/trainer_config_helpers/layers.py @@ -2269,7 +2269,7 @@ def img_depthwise_conv_layer(input, name=None, num_channels=None, act=None, - groups=1, + groups=None, stride=1, padding=0, bias_attr=None, @@ -2286,6 +2286,8 @@ def img_depthwise_conv_layer(input, assert input.num_filters is not None num_channels = input.num_filters + groups = num_channels + if filter_size_y is None: if isinstance(filter_size, collections.Sequence): assert len(filter_size) == 2 -- GitLab