Skip to content

Commit

Permalink
Update tests/openvino/test_modeling.py
Browse files Browse the repository at this point in the history
  • Loading branch information
eaidova authored Oct 28, 2024
1 parent 9fab315 commit 7f2f404
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/openvino/test_modeling.py
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,7 @@ def test_default_token_type_ids(self):
tokenizer = AutoTokenizer.from_pretrained(model_id)
tokens = tokenizer("this is a simple input", return_tensors="np")
self.assertTrue("token_type_ids" in model.input_names)
token_type_ids = tokens.pop("token_type_ids")
outs = model(token_type_ids=token_type_ids, **tokens)
outs_without_token_type_ids = model(**tokens)
self.assertTrue(np.allclose(outs.logits, outs_without_token_type_ids.logits))
Expand Down

0 comments on commit 7f2f404

Please sign in to comment.