fix vit hybrid test (#25543)

fix test
This commit is contained in:
Marc Sun 2023-08-16 11:02:57 -04:00 committed by GitHub
parent 3f9cb33504
commit 0ed23e4db2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -281,7 +281,7 @@ class ViTModelIntegrationTest(unittest.TestCase):
image = prepare_img()
inputs = image_processor(images=image, return_tensors="pt")
inputs = image_processor(images=image, return_tensors="pt").to(torch_device)
outputs = model(**inputs)
logits = outputs.logits
# model predicts one of the 1000 ImageNet classes