Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
0ed23e4d
"vscode:/vscode.git/clone" did not exist on "82e61f34451dbea2de8d2220d51b0609d605dfd7"
Unverified
Commit
0ed23e4d
authored
Aug 16, 2023
by
Marc Sun
Committed by
GitHub
Aug 16, 2023
Browse files
fix vit hybrid test (#25543)
fix test
parent
3f9cb335
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/models/vit_hybrid/test_modeling_vit_hybrid.py
tests/models/vit_hybrid/test_modeling_vit_hybrid.py
+1
-1
No files found.
tests/models/vit_hybrid/test_modeling_vit_hybrid.py
View file @
0ed23e4d
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment