mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 18:22:34 +06:00
parent
3f9cb33504
commit
0ed23e4db2
@ -281,7 +281,7 @@ class ViTModelIntegrationTest(unittest.TestCase):
|
|||||||
|
|
||||||
image = prepare_img()
|
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)
|
outputs = model(**inputs)
|
||||||
logits = outputs.logits
|
logits = outputs.logits
|
||||||
# model predicts one of the 1000 ImageNet classes
|
# model predicts one of the 1000 ImageNet classes
|
||||||
|
Loading…
Reference in New Issue
Block a user