Skip to content

Commit

Permalink
[Bug] fix bug in find_make_group_parser for depthwise (#195)
Browse files Browse the repository at this point in the history
Co-authored-by: yangmin <[email protected]>
  • Loading branch information
NickYangMin and yangmin authored Jul 8, 2022
1 parent c83a071 commit 8b57a07
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mmrazor/models/pruners/structure_pruning.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,8 @@ def find_make_group_parser(self, node_name, name2module):
elif (node_name in name2module
and isinstance(name2module[node_name], nn.Conv2d)
and name2module[node_name].in_channels
== name2module[node_name].out_channels
and name2module[node_name].in_channels
== name2module[node_name].groups):
return MAKE_GROUP_PARSER_DICT['depthwise']
else:
Expand Down

0 comments on commit 8b57a07

Please sign in to comment.