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
b991bc10
Unverified
Commit
b991bc10
authored
Jun 16, 2020
by
chicm-ms
Committed by
GitHub
Jun 16, 2020
Browse files
Fix model compression examples (#2557)
parent
f7052bda
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
examples/model_compress/model_prune_torch.py
examples/model_compress/model_prune_torch.py
+2
-2
No files found.
examples/model_compress/model_prune_torch.py
View file @
b991bc10
...
@@ -32,7 +32,7 @@ prune_config = {
...
@@ -32,7 +32,7 @@ prune_config = {
'start_epoch'
:
0
,
'start_epoch'
:
0
,
'end_epoch'
:
10
,
'end_epoch'
:
10
,
'frequency'
:
1
,
'frequency'
:
1
,
'op_types'
:
[
'
default
'
]
'op_types'
:
[
'
Conv2d
'
]
}]
}]
},
},
'slim'
:
{
'slim'
:
{
...
@@ -79,7 +79,7 @@ prune_config = {
...
@@ -79,7 +79,7 @@ prune_config = {
'pruner_class'
:
ActivationAPoZRankFilterPruner
,
'pruner_class'
:
ActivationAPoZRankFilterPruner
,
'config_list'
:
[{
'config_list'
:
[{
'sparsity'
:
0.5
,
'sparsity'
:
0.5
,
'op_types'
:
[
'
default
'
],
'op_types'
:
[
'
Conv2d
'
],
'op_names'
:
[
'feature.0'
,
'feature.24'
,
'feature.27'
,
'feature.30'
,
'feature.34'
,
'feature.37'
]
'op_names'
:
[
'feature.0'
,
'feature.24'
,
'feature.27'
,
'feature.30'
,
'feature.34'
,
'feature.37'
]
}]
}]
}
}
...
...
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