From 3872ea050e13e61c97d29b08313c3dd3ce1d9c3a Mon Sep 17 00:00:00 2001 From: chengduoZH Date: Mon, 20 Nov 2017 13:14:47 +0800 Subject: [PATCH] fix bug (conv2d groups ) --- python/paddle/v2/fluid/layers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/v2/fluid/layers.py b/python/paddle/v2/fluid/layers.py index 1789d2f82a8..02ad2ecd721 100644 --- a/python/paddle/v2/fluid/layers.py +++ b/python/paddle/v2/fluid/layers.py @@ -661,7 +661,7 @@ def conv2d(input, if groups is None: num_filter_channels = num_channels else: - if num_channels % groups is not 0: + if num_channels % groups != 0: raise ValueError("num_channels must be divisible by groups.") num_filter_channels = num_channels / groups -- GitLab