Skip to content

Commit

Permalink
Update tests/models/textnet/test_modeling_textnet.py
Browse files Browse the repository at this point in the history
Co-authored-by: Pavel Iakubovskii <[email protected]>
  • Loading branch information
jadechoghari and qubvel authored Dec 21, 2024
1 parent ed36fef commit 5f2b970
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/models/textnet/test_modeling_textnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,8 @@ def test_inference_textnet_image_classification(self):
inputs = processor(images=image, return_tensors="pt").to(torch_device)

# forward pass
output = model(**inputs)
with torch.no_grad():
output = model(**inputs)

# verify logits
self.assertEqual(output.logits.shape, torch.Size([1, 2]))
Expand Down

0 comments on commit 5f2b970

Please sign in to comment.