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
0a52ae6f
Unverified
Commit
0a52ae6f
authored
Mar 11, 2022
by
Ningxin Zheng
Committed by
GitHub
Mar 11, 2022
Browse files
support flatten (#4628)
parent
68ca6f21
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
nni/compression/pytorch/speedup/compress_modules.py
nni/compression/pytorch/speedup/compress_modules.py
+2
-1
No files found.
nni/compression/pytorch/speedup/compress_modules.py
View file @
0a52ae6f
...
...
@@ -41,7 +41,8 @@ replace_module = {
'Dropout3d'
:
lambda
module
,
masks
:
no_replace
(
module
,
masks
),
'Upsample'
:
lambda
module
,
masks
:
no_replace
(
module
,
masks
),
'LayerNorm'
:
lambda
module
,
masks
:
replace_layernorm
(
module
,
masks
),
'ConvTranspose2d'
:
lambda
module
,
masks
:
replace_convtranspose2d
(
module
,
masks
)
'ConvTranspose2d'
:
lambda
module
,
masks
:
replace_convtranspose2d
(
module
,
masks
),
'Flatten'
:
lambda
module
,
masks
:
no_replace
(
module
,
masks
)
}
...
...
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