未验证 提交 9db4d019 编写于 作者: C chengduo 提交者: GitHub

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

fix bug (conv2d  groups: 'num_channels % groups is not 0:' )
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册