Skip to content

Commit

Permalink
[Flax test] Add require pytorch to flix flax test (huggingface#8816)
Browse files Browse the repository at this point in the history
* try flax fix

* same for roberta
  • Loading branch information
patrickvonplaten authored and stas00 committed Dec 2, 2020
1 parent 4cb8033 commit fc3d92a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_modeling_flax_bert.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def assert_almost_equals(self, a: ndarray, b: ndarray, tol: float):


@require_flax
@require_torch
@pytest.mark.parametrize("jit", ["disable_jit", "enable_jit"])
def test_multiple_sentences(jit):
tokenizer = BertTokenizerFast.from_pretrained("bert-base-cased")
Expand Down
1 change: 1 addition & 0 deletions tests/test_modeling_flax_roberta.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def assert_almost_equals(self, a: ndarray, b: ndarray, tol: float):


@require_flax
@require_torch
@pytest.mark.parametrize("jit", ["disable_jit", "enable_jit"])
def test_multiple_sentences(jit):
tokenizer = RobertaTokenizerFast.from_pretrained("roberta-base")
Expand Down

0 comments on commit fc3d92a

Please sign in to comment.