Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
nni
Commits
03ff3741
Unverified
Commit
03ff3741
authored
May 19, 2021
by
Xuesong Wang
Committed by
GitHub
May 19, 2021
Browse files
fix the bug in line no.336 in mask_conflict.py (#3629)
Co-authored-by:
Xuesong Wang
<
wangxuesong@dm-ai.cn
>
parent
797b9635
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
nni/compression/pytorch/utils/mask_conflict.py
nni/compression/pytorch/utils/mask_conflict.py
+1
-1
No files found.
nni/compression/pytorch/utils/mask_conflict.py
View file @
03ff3741
...
...
@@ -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__
}
'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment