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
2485b8b0
Commit
2485b8b0
authored
Oct 15, 2020
by
Lysandre
Browse files
Set XLA example time to 500s
parent
2dba7d57
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/test_xla_examples.py
examples/test_xla_examples.py
+1
-1
No files found.
examples/test_xla_examples.py
View file @
2485b8b0
...
@@ -80,7 +80,7 @@ class TorchXLAExamplesTests(unittest.TestCase):
...
@@ -80,7 +80,7 @@ class TorchXLAExamplesTests(unittest.TestCase):
self
.
assertGreaterEqual
(
value
,
0.70
)
self
.
assertGreaterEqual
(
value
,
0.70
)
# Assert that the script takes less than 300 seconds to make sure it doesn't hang.
# Assert that the script takes less than 300 seconds to make sure it doesn't hang.
self
.
assertLess
(
end
-
start
,
3
00
)
self
.
assertLess
(
end
-
start
,
5
00
)
def
test_trainer_tpu
(
self
):
def
test_trainer_tpu
(
self
):
import
xla_spawn
import
xla_spawn
...
...
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