Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Gaëtan Caillaut
minibert-deft2018
Commits
3074b260
Commit
3074b260
authored
Mar 29, 2021
by
Gaëtan Caillaut
Browse files
fix freeze_attention when not set (forgot on occurence)
parent
0f14371f
Changes
1
Hide whitespace changes
Inline
Side-by-side
train.py
View file @
3074b260
...
...
@@ -47,7 +47,12 @@ def t1_run_name_from_params(args):
"nonorm"
if
args
.
dont_normalize
else
"norm"
])
if
args
.
freeze_attention
:
try
:
freeze_attention
=
args
.
freeze_attention
except
AttributeError
:
freeze_attention
=
False
if
freeze_attention
:
s
=
f
"
{
s
}
_frozen"
return
s
...
...
Write
Preview
Supports
Markdown
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