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
5fed5bb3
"vscode:/vscode.git/clone" did not exist on "b25cec13c57656941aac3b920eeb488c1915df18"
Commit
5fed5bb3
authored
Apr 03, 2019
by
lukovnikov
Browse files
schedule fix
parent
23bd2eeb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
pytorch_pretrained_bert/optimization.py
pytorch_pretrained_bert/optimization.py
+1
-1
No files found.
pytorch_pretrained_bert/optimization.py
View file @
5fed5bb3
...
@@ -38,7 +38,7 @@ class LRSchedule(object):
...
@@ -38,7 +38,7 @@ class LRSchedule(object):
:param kw:
:param kw:
"""
"""
super
(
LRSchedule
,
self
).
__init__
(
**
kw
)
super
(
LRSchedule
,
self
).
__init__
(
**
kw
)
if
t_total
<
=
0
:
if
t_total
<
0
:
logger
.
warning
(
"t_total value of {} results in schedule not being applied"
.
format
(
t_total
))
logger
.
warning
(
"t_total value of {} results in schedule not being applied"
.
format
(
t_total
))
if
not
0.0
<=
warmup
<
1.0
and
not
warmup
==
-
1
:
if
not
0.0
<=
warmup
<
1.0
and
not
warmup
==
-
1
:
raise
ValueError
(
"Invalid warmup: {} - should be in [0.0, 1.0[ or -1"
.
format
(
warmup
))
raise
ValueError
(
"Invalid warmup: {} - should be in [0.0, 1.0[ or -1"
.
format
(
warmup
))
...
...
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