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
fb5665b5
Unverified
Commit
fb5665b5
authored
Jul 12, 2021
by
Lysandre Debut
Committed by
GitHub
Jul 12, 2021
Browse files
The extended trainer tests should require torch (#12650)
parent
0af8579b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
tests/extended/test_trainer_ext.py
tests/extended/test_trainer_ext.py
+2
-0
No files found.
tests/extended/test_trainer_ext.py
View file @
fb5665b5
...
...
@@ -28,6 +28,7 @@ from transformers.testing_utils import (
execute_subprocess_async
,
get_gpu_count
,
get_torch_dist_unique_port
,
require_torch
,
require_torch_gpu
,
require_torch_multi_gpu
,
require_torch_non_multi_gpu
,
...
...
@@ -69,6 +70,7 @@ def require_apex(test_case):
return
test_case
@
require_torch
class
TestTrainerExt
(
TestCasePlus
):
def
run_seq2seq_quick
(
self
,
...
...
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