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
f03580fb
"git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "050ef1451682a64a70394f372021572c59dc4c28"
Unverified
Commit
f03580fb
authored
Jul 15, 2021
by
Lysandre Debut
Committed by
GitHub
Jul 15, 2021
Browse files
Fix DETR integration test (#12734)
parent
f42d9dcc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/test_modeling_detr.py
tests/test_modeling_detr.py
+1
-1
No files found.
tests/test_modeling_detr.py
View file @
f03580fb
...
...
@@ -524,4 +524,4 @@ class DetrModelIntegrationTests(unittest.TestCase):
expected_slice_masks
=
torch
.
tensor
(
[[
-
7.7558
,
-
10.8788
,
-
11.9797
],
[
-
11.8881
,
-
16.4329
,
-
17.7451
],
[
-
14.7316
,
-
19.7383
,
-
20.3004
]]
).
to
(
torch_device
)
self
.
assertTrue
(
torch
.
allclose
(
outputs
.
pred_masks
[
0
,
0
,
:
3
,
:
3
],
expected_slice_masks
,
atol
=
1e-
4
))
self
.
assertTrue
(
torch
.
allclose
(
outputs
.
pred_masks
[
0
,
0
,
:
3
,
:
3
],
expected_slice_masks
,
atol
=
1e-
3
))
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