Skip to content

Commit 7bf411f

Browse files
committed
fix: Repair input range on BERT inputs for CI
- Update range on BERT module inputs to respect input/embedding indexing restrictions - Fix failing CI test with BERT on TorchScript path
1 parent 5b156dc commit 7bf411f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/py/models/test_models.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def test_efficientnet_b0(self):
8686

8787
def test_bert_base_uncased(self):
8888
self.model = cm.BertModule().cuda()
89-
self.input = torch.randint(0, 5, (1, 14), dtype=torch.int32).to("cuda")
89+
self.input = torch.randint(0, 2, (1, 14), dtype=torch.int32).to("cuda")
9090

9191
compile_spec = {
9292
"inputs": [

0 commit comments

Comments
 (0)