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
42fddacd
Commit
42fddacd
authored
Aug 27, 2020
by
Lysandre
Browse files
Format
parent
70fccc5c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
tests/test_optimization.py
tests/test_optimization.py
+4
-1
No files found.
tests/test_optimization.py
View file @
42fddacd
...
...
@@ -154,7 +154,10 @@ class ScheduleInitTest(unittest.TestCase):
self
.
assertEqual
(
len
([
scheduler
.
get_lr
()[
0
]]),
1
)
lrs_1
=
unwrap_schedule
(
scheduler
,
self
.
num_steps
)
self
.
assertListAlmostEqual
(
lrs_1
,
expected_learning_rates
,
tol
=
1e-2
,
msg
=
f
"failed for
{
scheduler_func
}
in normal scheduler"
,
lrs_1
,
expected_learning_rates
,
tol
=
1e-2
,
msg
=
f
"failed for
{
scheduler_func
}
in normal scheduler"
,
)
scheduler
=
scheduler_func
(
self
.
optimizer
,
**
kwargs
)
...
...
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