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
e02ce4dc
Unverified
Commit
e02ce4dc
authored
Jun 11, 2019
by
Meet Pragnesh Shah
Committed by
GitHub
Jun 11, 2019
Browse files
[hotfix] Fix frozen pooler parameters in SWAG example.
parent
784c0ed8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/run_swag.py
examples/run_swag.py
+1
-1
No files found.
examples/run_swag.py
View file @
e02ce4dc
...
@@ -390,7 +390,7 @@ def main():
...
@@ -390,7 +390,7 @@ def main():
# hack to remove pooler, which is not used
# hack to remove pooler, which is not used
# thus it produce None grad that break apex
# thus it produce None grad that break apex
param_optimizer
=
[
n
for
n
in
param_optimizer
if
'pooler'
not
in
n
[
0
]
]
param_optimizer
=
[
n
for
n
in
param_optimizer
]
no_decay
=
[
'bias'
,
'LayerNorm.bias'
,
'LayerNorm.weight'
]
no_decay
=
[
'bias'
,
'LayerNorm.bias'
,
'LayerNorm.weight'
]
optimizer_grouped_parameters
=
[
optimizer_grouped_parameters
=
[
...
...
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