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
da71df1a
"docs/source/vscode:/vscode.git/clone" did not exist on "996a315e76f6c972c854990e6114226a91bc0a90"
Unverified
Commit
da71df1a
authored
Jun 06, 2022
by
Anugunj Naman
Committed by
GitHub
Jun 06, 2022
Browse files
fix integration test levit (#17555)
parent
26e5e129
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/models/levit/test_modeling_levit.py
tests/models/levit/test_modeling_levit.py
+1
-1
No files found.
tests/models/levit/test_modeling_levit.py
View file @
da71df1a
...
...
@@ -418,6 +418,6 @@ class LevitModelIntegrationTest(unittest.TestCase):
expected_shape
=
torch
.
Size
((
1
,
1000
))
self
.
assertEqual
(
outputs
.
logits
.
shape
,
expected_shape
)
expected_slice
=
torch
.
tensor
([
0
.0
096
,
-
1.0084
,
-
1.
4
31
8
]).
to
(
torch_device
)
expected_slice
=
torch
.
tensor
([
1
.0
448
,
-
0.3745
,
-
1.
8
31
7
]).
to
(
torch_device
)
self
.
assertTrue
(
torch
.
allclose
(
outputs
.
logits
[
0
,
:
3
],
expected_slice
,
atol
=
1e-4
))
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