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
a2cf3759
Unverified
Commit
a2cf3759
authored
Nov 27, 2020
by
Patrick von Platen
Committed by
GitHub
Nov 27, 2020
Browse files
[Flax test] Add require pytorch to flix flax test (#8816)
* try flax fix * same for roberta
parent
e3ef62bc
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
tests/test_modeling_flax_bert.py
tests/test_modeling_flax_bert.py
+1
-0
tests/test_modeling_flax_roberta.py
tests/test_modeling_flax_roberta.py
+1
-0
No files found.
tests/test_modeling_flax_bert.py
View file @
a2cf3759
...
@@ -48,6 +48,7 @@ class FlaxBertModelTest(unittest.TestCase):
...
@@ -48,6 +48,7 @@ class FlaxBertModelTest(unittest.TestCase):
@
require_flax
@
require_flax
@
require_torch
@
pytest
.
mark
.
parametrize
(
"jit"
,
[
"disable_jit"
,
"enable_jit"
])
@
pytest
.
mark
.
parametrize
(
"jit"
,
[
"disable_jit"
,
"enable_jit"
])
def
test_multiple_sentences
(
jit
):
def
test_multiple_sentences
(
jit
):
tokenizer
=
BertTokenizerFast
.
from_pretrained
(
"bert-base-cased"
)
tokenizer
=
BertTokenizerFast
.
from_pretrained
(
"bert-base-cased"
)
...
...
tests/test_modeling_flax_roberta.py
View file @
a2cf3759
...
@@ -48,6 +48,7 @@ class FlaxRobertaModelTest(unittest.TestCase):
...
@@ -48,6 +48,7 @@ class FlaxRobertaModelTest(unittest.TestCase):
@
require_flax
@
require_flax
@
require_torch
@
pytest
.
mark
.
parametrize
(
"jit"
,
[
"disable_jit"
,
"enable_jit"
])
@
pytest
.
mark
.
parametrize
(
"jit"
,
[
"disable_jit"
,
"enable_jit"
])
def
test_multiple_sentences
(
jit
):
def
test_multiple_sentences
(
jit
):
tokenizer
=
RobertaTokenizerFast
.
from_pretrained
(
"roberta-base"
)
tokenizer
=
RobertaTokenizerFast
.
from_pretrained
(
"roberta-base"
)
...
...
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