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
chenpangpang
transformers
Commits
049e14f0
Unverified
Commit
049e14f0
authored
Jun 18, 2020
by
Pranav Dayanand Pawar
Committed by
GitHub
Jun 17, 2020
Browse files
very minor spelling correction in script command (#5090)
actual script name - counts_parameters.py
parent
20fa8289
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/movement-pruning/README.md
examples/movement-pruning/README.md
+1
-1
No files found.
examples/movement-pruning/README.md
View file @
049e14f0
...
@@ -140,7 +140,7 @@ Regularization based pruning methods (soft movement pruning and L0 regularizatio
...
@@ -140,7 +140,7 @@ Regularization based pruning methods (soft movement pruning and L0 regularizatio
To obtain the effective sparsity level in the encoder, we simply count the number of activated (non-null) weights:
To obtain the effective sparsity level in the encoder, we simply count the number of activated (non-null) weights:
```
bash
```
bash
python examples/movement-pruning/count_parameters.py
\
python examples/movement-pruning/count
s
_parameters.py
\
--pruning_method
sigmoied_threshold
\
--pruning_method
sigmoied_threshold
\
--threshold
0.1
\
--threshold
0.1
\
--serialization_dir
$SERIALIZATION_DIR
--serialization_dir
$SERIALIZATION_DIR
...
...
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