parent
3f9cb33504
commit
0ed23e4db2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue