Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
ced0a942
Commit
ced0a942
authored
Dec 22, 2019
by
Aymeric Augustin
Browse files
Switch test files to the standard test_*.py scheme.
parent
067395d5
Changes
54
Show whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
32 additions
and
31 deletions
+32
-31
tests/test_modeling_t5.py
tests/test_modeling_t5.py
+2
-2
tests/test_modeling_tf_albert.py
tests/test_modeling_tf_albert.py
+2
-2
tests/test_modeling_tf_auto.py
tests/test_modeling_tf_auto.py
+0
-0
tests/test_modeling_tf_bert.py
tests/test_modeling_tf_bert.py
+2
-2
tests/test_modeling_tf_common.py
tests/test_modeling_tf_common.py
+0
-0
tests/test_modeling_tf_ctrl.py
tests/test_modeling_tf_ctrl.py
+2
-2
tests/test_modeling_tf_distilbert.py
tests/test_modeling_tf_distilbert.py
+2
-2
tests/test_modeling_tf_gpt2.py
tests/test_modeling_tf_gpt2.py
+2
-2
tests/test_modeling_tf_openai_gpt.py
tests/test_modeling_tf_openai_gpt.py
+2
-2
tests/test_modeling_tf_roberta.py
tests/test_modeling_tf_roberta.py
+2
-2
tests/test_modeling_tf_t5.py
tests/test_modeling_tf_t5.py
+2
-2
tests/test_modeling_tf_transfo_xl.py
tests/test_modeling_tf_transfo_xl.py
+2
-2
tests/test_modeling_tf_xlm.py
tests/test_modeling_tf_xlm.py
+2
-2
tests/test_modeling_tf_xlnet.py
tests/test_modeling_tf_xlnet.py
+2
-2
tests/test_modeling_transfo_xl.py
tests/test_modeling_transfo_xl.py
+2
-2
tests/test_modeling_xlm.py
tests/test_modeling_xlm.py
+2
-2
tests/test_modeling_xlnet.py
tests/test_modeling_xlnet.py
+2
-2
tests/test_optimization.py
tests/test_optimization.py
+0
-0
tests/test_optimization_tf.py
tests/test_optimization_tf.py
+0
-0
tests/test_pipelines.py
tests/test_pipelines.py
+2
-1
No files found.
tests/modeling_t5
_test
.py
→
tests/
test_
modeling_t5.py
View file @
ced0a942
...
@@ -18,8 +18,8 @@ import unittest
...
@@ -18,8 +18,8 @@ import unittest
from
transformers
import
is_torch_available
from
transformers
import
is_torch_available
from
.configuration_common
_test
import
ConfigTester
from
.
test_
configuration_common
import
ConfigTester
from
.modeling_common
_test
import
CommonTestCases
,
ids_tensor
from
.
test_
modeling_common
import
CommonTestCases
,
ids_tensor
from
.utils
import
CACHE_DIR
,
require_torch
,
slow
from
.utils
import
CACHE_DIR
,
require_torch
,
slow
...
...
tests/modeling_tf_albert
_test
.py
→
tests/
test_
modeling_tf_albert.py
View file @
ced0a942
...
@@ -18,8 +18,8 @@ import unittest
...
@@ -18,8 +18,8 @@ import unittest
from
transformers
import
AlbertConfig
,
is_tf_available
from
transformers
import
AlbertConfig
,
is_tf_available
from
.configuration_common
_test
import
ConfigTester
from
.
test_
configuration_common
import
ConfigTester
from
.modeling_tf_common
_test
import
TFCommonTestCases
,
ids_tensor
from
.
test_
modeling_tf_common
import
TFCommonTestCases
,
ids_tensor
from
.utils
import
CACHE_DIR
,
require_tf
,
slow
from
.utils
import
CACHE_DIR
,
require_tf
,
slow
...
...
tests/modeling_tf_auto
_test
.py
→
tests/
test_
modeling_tf_auto.py
View file @
ced0a942
File moved
tests/modeling_tf_bert
_test
.py
→
tests/
test_
modeling_tf_bert.py
View file @
ced0a942
...
@@ -18,8 +18,8 @@ import unittest
...
@@ -18,8 +18,8 @@ import unittest
from
transformers
import
BertConfig
,
is_tf_available
from
transformers
import
BertConfig
,
is_tf_available
from
.configuration_common
_test
import
ConfigTester
from
.
test_
configuration_common
import
ConfigTester
from
.modeling_tf_common
_test
import
TFCommonTestCases
,
ids_tensor
from
.
test_
modeling_tf_common
import
TFCommonTestCases
,
ids_tensor
from
.utils
import
CACHE_DIR
,
require_tf
,
slow
from
.utils
import
CACHE_DIR
,
require_tf
,
slow
...
...
tests/modeling_tf_common
_test
.py
→
tests/
test_
modeling_tf_common.py
View file @
ced0a942
File moved
tests/modeling_tf_ctrl
_test
.py
→
tests/
test_
modeling_tf_ctrl.py
View file @
ced0a942
...
@@ -18,8 +18,8 @@ import unittest
...
@@ -18,8 +18,8 @@ import unittest
from
transformers
import
CTRLConfig
,
is_tf_available
from
transformers
import
CTRLConfig
,
is_tf_available
from
.configuration_common
_test
import
ConfigTester
from
.
test_
configuration_common
import
ConfigTester
from
.modeling_tf_common
_test
import
TFCommonTestCases
,
ids_tensor
from
.
test_
modeling_tf_common
import
TFCommonTestCases
,
ids_tensor
from
.utils
import
CACHE_DIR
,
require_tf
,
slow
from
.utils
import
CACHE_DIR
,
require_tf
,
slow
...
...
tests/modeling_tf_distilbert
_test
.py
→
tests/
test_
modeling_tf_distilbert.py
View file @
ced0a942
...
@@ -18,8 +18,8 @@ import unittest
...
@@ -18,8 +18,8 @@ import unittest
from
transformers
import
DistilBertConfig
,
is_tf_available
from
transformers
import
DistilBertConfig
,
is_tf_available
from
.configuration_common
_test
import
ConfigTester
from
.
test_
configuration_common
import
ConfigTester
from
.modeling_tf_common
_test
import
TFCommonTestCases
,
ids_tensor
from
.
test_
modeling_tf_common
import
TFCommonTestCases
,
ids_tensor
from
.utils
import
require_tf
from
.utils
import
require_tf
...
...
tests/modeling_tf_gpt2
_test
.py
→
tests/
test_
modeling_tf_gpt2.py
View file @
ced0a942
...
@@ -18,8 +18,8 @@ import unittest
...
@@ -18,8 +18,8 @@ import unittest
from
transformers
import
GPT2Config
,
is_tf_available
from
transformers
import
GPT2Config
,
is_tf_available
from
.configuration_common
_test
import
ConfigTester
from
.
test_
configuration_common
import
ConfigTester
from
.modeling_tf_common
_test
import
TFCommonTestCases
,
ids_tensor
from
.
test_
modeling_tf_common
import
TFCommonTestCases
,
ids_tensor
from
.utils
import
CACHE_DIR
,
require_tf
,
slow
from
.utils
import
CACHE_DIR
,
require_tf
,
slow
...
...
tests/modeling_tf_openai_gpt
_test
.py
→
tests/
test_
modeling_tf_openai_gpt.py
View file @
ced0a942
...
@@ -18,8 +18,8 @@ import unittest
...
@@ -18,8 +18,8 @@ import unittest
from
transformers
import
OpenAIGPTConfig
,
is_tf_available
from
transformers
import
OpenAIGPTConfig
,
is_tf_available
from
.configuration_common
_test
import
ConfigTester
from
.
test_
configuration_common
import
ConfigTester
from
.modeling_tf_common
_test
import
TFCommonTestCases
,
ids_tensor
from
.
test_
modeling_tf_common
import
TFCommonTestCases
,
ids_tensor
from
.utils
import
CACHE_DIR
,
require_tf
,
slow
from
.utils
import
CACHE_DIR
,
require_tf
,
slow
...
...
tests/modeling_tf_roberta
_test
.py
→
tests/
test_
modeling_tf_roberta.py
View file @
ced0a942
...
@@ -18,8 +18,8 @@ import unittest
...
@@ -18,8 +18,8 @@ import unittest
from
transformers
import
RobertaConfig
,
is_tf_available
from
transformers
import
RobertaConfig
,
is_tf_available
from
.configuration_common
_test
import
ConfigTester
from
.
test_
configuration_common
import
ConfigTester
from
.modeling_tf_common
_test
import
TFCommonTestCases
,
ids_tensor
from
.
test_
modeling_tf_common
import
TFCommonTestCases
,
ids_tensor
from
.utils
import
CACHE_DIR
,
require_tf
,
slow
from
.utils
import
CACHE_DIR
,
require_tf
,
slow
...
...
tests/modeling_tf_t5
_test
.py
→
tests/
test_
modeling_tf_t5.py
View file @
ced0a942
...
@@ -18,8 +18,8 @@ import unittest
...
@@ -18,8 +18,8 @@ import unittest
from
transformers
import
T5Config
,
is_tf_available
from
transformers
import
T5Config
,
is_tf_available
from
.configuration_common
_test
import
ConfigTester
from
.
test_
configuration_common
import
ConfigTester
from
.modeling_tf_common
_test
import
TFCommonTestCases
,
ids_tensor
from
.
test_
modeling_tf_common
import
TFCommonTestCases
,
ids_tensor
from
.utils
import
CACHE_DIR
,
require_tf
,
slow
from
.utils
import
CACHE_DIR
,
require_tf
,
slow
...
...
tests/modeling_tf_transfo_xl
_test
.py
→
tests/
test_
modeling_tf_transfo_xl.py
View file @
ced0a942
...
@@ -19,8 +19,8 @@ import unittest
...
@@ -19,8 +19,8 @@ import unittest
from
transformers
import
TransfoXLConfig
,
is_tf_available
from
transformers
import
TransfoXLConfig
,
is_tf_available
from
.configuration_common
_test
import
ConfigTester
from
.
test_
configuration_common
import
ConfigTester
from
.modeling_tf_common
_test
import
TFCommonTestCases
,
ids_tensor
from
.
test_
modeling_tf_common
import
TFCommonTestCases
,
ids_tensor
from
.utils
import
CACHE_DIR
,
require_tf
,
slow
from
.utils
import
CACHE_DIR
,
require_tf
,
slow
...
...
tests/modeling_tf_xlm
_test
.py
→
tests/
test_
modeling_tf_xlm.py
View file @
ced0a942
...
@@ -18,8 +18,8 @@ import unittest
...
@@ -18,8 +18,8 @@ import unittest
from
transformers
import
is_tf_available
from
transformers
import
is_tf_available
from
.configuration_common
_test
import
ConfigTester
from
.
test_
configuration_common
import
ConfigTester
from
.modeling_tf_common
_test
import
TFCommonTestCases
,
ids_tensor
from
.
test_
modeling_tf_common
import
TFCommonTestCases
,
ids_tensor
from
.utils
import
CACHE_DIR
,
require_tf
,
slow
from
.utils
import
CACHE_DIR
,
require_tf
,
slow
...
...
tests/modeling_tf_xlnet
_test
.py
→
tests/
test_
modeling_tf_xlnet.py
View file @
ced0a942
...
@@ -19,8 +19,8 @@ import unittest
...
@@ -19,8 +19,8 @@ import unittest
from
transformers
import
XLNetConfig
,
is_tf_available
from
transformers
import
XLNetConfig
,
is_tf_available
from
.configuration_common
_test
import
ConfigTester
from
.
test_
configuration_common
import
ConfigTester
from
.modeling_tf_common
_test
import
TFCommonTestCases
,
ids_tensor
from
.
test_
modeling_tf_common
import
TFCommonTestCases
,
ids_tensor
from
.utils
import
CACHE_DIR
,
require_tf
,
slow
from
.utils
import
CACHE_DIR
,
require_tf
,
slow
...
...
tests/modeling_transfo_xl
_test
.py
→
tests/
test_
modeling_transfo_xl.py
View file @
ced0a942
...
@@ -19,8 +19,8 @@ import unittest
...
@@ -19,8 +19,8 @@ import unittest
from
transformers
import
is_torch_available
from
transformers
import
is_torch_available
from
.configuration_common
_test
import
ConfigTester
from
.
test_
configuration_common
import
ConfigTester
from
.modeling_common
_test
import
CommonTestCases
,
ids_tensor
from
.
test_
modeling_common
import
CommonTestCases
,
ids_tensor
from
.utils
import
CACHE_DIR
,
require_torch
,
slow
,
torch_device
from
.utils
import
CACHE_DIR
,
require_torch
,
slow
,
torch_device
...
...
tests/modeling_xlm
_test
.py
→
tests/
test_
modeling_xlm.py
View file @
ced0a942
...
@@ -18,8 +18,8 @@ import unittest
...
@@ -18,8 +18,8 @@ import unittest
from
transformers
import
is_torch_available
from
transformers
import
is_torch_available
from
.configuration_common
_test
import
ConfigTester
from
.
test_
configuration_common
import
ConfigTester
from
.modeling_common
_test
import
CommonTestCases
,
ids_tensor
from
.
test_
modeling_common
import
CommonTestCases
,
ids_tensor
from
.utils
import
CACHE_DIR
,
require_torch
,
slow
,
torch_device
from
.utils
import
CACHE_DIR
,
require_torch
,
slow
,
torch_device
...
...
tests/modeling_xlnet
_test
.py
→
tests/
test_
modeling_xlnet.py
View file @
ced0a942
...
@@ -19,8 +19,8 @@ import unittest
...
@@ -19,8 +19,8 @@ import unittest
from
transformers
import
is_torch_available
from
transformers
import
is_torch_available
from
.configuration_common
_test
import
ConfigTester
from
.
test_
configuration_common
import
ConfigTester
from
.modeling_common
_test
import
CommonTestCases
,
ids_tensor
from
.
test_
modeling_common
import
CommonTestCases
,
ids_tensor
from
.utils
import
CACHE_DIR
,
require_torch
,
slow
,
torch_device
from
.utils
import
CACHE_DIR
,
require_torch
,
slow
,
torch_device
...
...
tests/optimization
_test
.py
→
tests/
test_
optimization.py
View file @
ced0a942
File moved
tests/optimization_tf
_test
.py
→
tests/
test_
optimization_tf.py
View file @
ced0a942
File moved
tests/pipelines
_test
.py
→
tests/
test_
pipelines.py
View file @
ced0a942
...
@@ -2,7 +2,8 @@ import unittest
...
@@ -2,7 +2,8 @@ import unittest
from
typing
import
Iterable
from
typing
import
Iterable
from
transformers
import
pipeline
from
transformers
import
pipeline
from
transformers.tests.utils
import
require_tf
,
require_torch
from
.utils
import
require_tf
,
require_torch
QA_FINETUNED_MODELS
=
{
QA_FINETUNED_MODELS
=
{
...
...
Prev
1
2
3
Next
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