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
OpenDAS
vision
Commits
a2189d6c
Unverified
Commit
a2189d6c
authored
Aug 30, 2023
by
Nicolas Hug
Committed by
GitHub
Aug 30, 2023
Browse files
Avoid / silence warnings in refactored tests (#7905)
parent
25ec3f26
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
test/test_transforms_v2_refactored.py
test/test_transforms_v2_refactored.py
+2
-1
No files found.
test/test_transforms_v2_refactored.py
View file @
a2189d6c
...
...
@@ -821,7 +821,7 @@ class TestResize:
# Non-regression test for https://github.com/pytorch/vision/issues/7667
input
=
make_image_tensor
(
self
.
INPUT_SIZE
,
dtype
=
torch
.
float16
)
output
=
F
.
resize_image
(
input
,
size
=
self
.
OUTPUT_SIZES
[
0
])
output
=
F
.
resize_image
(
input
,
size
=
self
.
OUTPUT_SIZES
[
0
]
,
antialias
=
True
)
assert
output
.
dtype
is
torch
.
float16
assert
(
output
.
round
()
-
output
).
abs
().
sum
()
>
0
...
...
@@ -1375,6 +1375,7 @@ class TestVerticalFlip:
assert_equal
(
output
,
input
)
@
pytest
.
mark
.
filterwarnings
(
"ignore:The provided center argument has no effect"
)
class
TestRotate
:
_EXHAUSTIVE_TYPE_AFFINE_KWARGS
=
dict
(
# float, int
...
...
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