Merge pull request #5772 from chengduoZH/fix_layer.py.conv2dbug

fix bug (conv2d  groups: 'num_channels % groups is not 0:' )
release/0.11.0
chengduo 8 years ago committed by GitHub
commit 9db4d01928
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save