Skip to content

Commit 9db4d01

Browse files
author
chengduo
authored
Merge pull request #5772 from chengduoZH/fix_layer.py.conv2dbug
fix bug (conv2d groups: 'num_channels % groups is not 0:' )
2 parents 8ee5861 + 3872ea0 commit 9db4d01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/paddle/v2/fluid/layers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ def conv2d(input,
661661
if groups is None:
662662
num_filter_channels = num_channels
663663
else:
664-
if num_channels % groups is not 0:
664+
if num_channels % groups != 0:
665665
raise ValueError("num_channels must be divisible by groups.")
666666
num_filter_channels = num_channels / groups
667667

0 commit comments

Comments
 (0)