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
c014d1f0
Commit
c014d1f0
authored
Sep 23, 2019
by
thomwolf
Browse files
fix the skipping
parent
0b22e47a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
pytorch_transformers/tests/modeling_tf_auto_test.py
pytorch_transformers/tests/modeling_tf_auto_test.py
+2
-1
pytorch_transformers/tests/modeling_tf_bert_test.py
pytorch_transformers/tests/modeling_tf_bert_test.py
+1
-1
No files found.
pytorch_transformers/tests/modeling_tf_auto_test.py
View file @
c014d1f0
...
@@ -23,7 +23,8 @@ import logging
...
@@ -23,7 +23,8 @@ import logging
from
pytorch_transformers
import
is_tf_available
from
pytorch_transformers
import
is_tf_available
if
is_tf_available
():
# if is_tf_available():
if
False
:
from
pytorch_transformers
import
(
AutoConfig
,
BertConfig
,
from
pytorch_transformers
import
(
AutoConfig
,
BertConfig
,
TFAutoModel
,
TFBertModel
,
TFAutoModel
,
TFBertModel
,
TFAutoModelWithLMHead
,
TFBertForMaskedLM
,
TFAutoModelWithLMHead
,
TFBertForMaskedLM
,
...
...
pytorch_transformers/tests/modeling_tf_bert_test.py
View file @
c014d1f0
...
@@ -26,7 +26,7 @@ from .configuration_common_test import ConfigTester
...
@@ -26,7 +26,7 @@ from .configuration_common_test import ConfigTester
from
pytorch_transformers
import
BertConfig
,
is_tf_available
from
pytorch_transformers
import
BertConfig
,
is_tf_available
if
False
and
is_tf_available
():
if
is_tf_available
():
import
tensorflow
as
tf
import
tensorflow
as
tf
from
pytorch_transformers.modeling_tf_bert
import
(
TFBertModel
,
TFBertForMaskedLM
,
from
pytorch_transformers.modeling_tf_bert
import
(
TFBertModel
,
TFBertForMaskedLM
,
TFBertForNextSentencePrediction
,
TFBertForNextSentencePrediction
,
...
...
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