Skip to content

Commit

Permalink
fix: remove useless .to in test
Browse files Browse the repository at this point in the history
  • Loading branch information
tonywu71 committed Sep 10, 2024
1 parent 48e0792 commit 5dce8d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/models/paligemma/colpali/test_modeling_colpali.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def test_colpali_forward_queries(

# Forward pass
with torch.no_grad():
outputs = colpali_from_pretrained(**batch_queries).to(colpali_from_pretrained.device)
outputs = colpali_from_pretrained(**batch_queries)

# Assertions
assert isinstance(outputs, torch.Tensor)
Expand Down

0 comments on commit 5dce8d0

Please sign in to comment.