Skip to content

Commit

Permalink
Fix SentenceTransformer test (#9362)
Browse files Browse the repository at this point in the history
  • Loading branch information
rusty1s authored May 26, 2024
1 parent d3ce05c commit ca3b0f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/nn/nlp/test_sentence_transformer.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import pytest

from torch_geometric.nn.nlp import SentenceTransformer
from torch_geometric.testing import onlyFullTest, withCUDA
from torch_geometric.testing import onlyFullTest, withCUDA, withPackage


@withCUDA
@onlyFullTest
@withPackage('transformers')
@pytest.mark.parametrize('batch_size', [None, 1])
def test_sentence_transformer(batch_size, device):
model = SentenceTransformer(model_name='prajjwal1/bert-tiny').to(device)
Expand Down

0 comments on commit ca3b0f4

Please sign in to comment.