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
18c32eeb
Unverified
Commit
18c32eeb
authored
Nov 27, 2020
by
Lysandre Debut
Committed by
GitHub
Nov 27, 2020
Browse files
Model parallel tests should return, not pass in non model parallel settings. (#8825)
parent
edbff1fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tests/test_modeling_common.py
tests/test_modeling_common.py
+2
-2
No files found.
tests/test_modeling_common.py
View file @
18c32eeb
...
...
@@ -1022,7 +1022,7 @@ class ModelTesterMixin:
@
require_torch_multi_gpu
def
test_model_parallelization
(
self
):
if
not
self
.
test_model_parallel
:
pass
return
import
subprocess
...
...
@@ -1079,7 +1079,7 @@ class ModelTesterMixin:
@
require_torch_multi_gpu
def
test_model_parallel_equal_results
(
self
):
if
not
self
.
test_model_parallel
:
pass
return
config
,
inputs_dict
=
self
.
model_tester
.
prepare_config_and_inputs_for_common
()
...
...
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