Skip to content

Commit 3872ea0

Browse files
committed
fix bug (conv2d groups )
1 parent 6da78d9 commit 3872ea0

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)