Unverified Commit 03ff3741 authored by Xuesong Wang's avatar Xuesong Wang Committed by GitHub
Browse files

fix the bug in line no.336 in mask_conflict.py (#3629)


Co-authored-by: default avatarXuesong Wang <wangxuesong@dm-ai.cn>
parent 797b9635
......@@ -333,7 +333,7 @@ class ChannelMaskConflict(MaskFix):
elif type(m).__name__ == 'Linear':
new_mask[:, merged_index] = 1.
elif type(m).__name__ == 'BatchNorm2d':
new_mask = merged_index.type_as(orig_mask)
new_mask = merged_channel_mask.type_as(orig_mask)
else:
raise RuntimeError(
f'unsupported module type: {type(m).__name__}')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment