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
347f9423
Unverified
Commit
347f9423
authored
Oct 09, 2023
by
Nicolas Hug
Committed by
GitHub
Oct 09, 2023
Browse files
Put pytestmark at top of file (#8032)
parent
1101c3dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
test/test_transforms_v2.py
test/test_transforms_v2.py
+4
-4
No files found.
test/test_transforms_v2.py
View file @
347f9423
...
...
@@ -52,6 +52,10 @@ from torchvision.transforms.v2.functional._geometry import _get_perspective_coef
from
torchvision.transforms.v2.functional._utils
import
_get_kernel
,
_register_kernel_internal
# turns all warnings into errors for this module
pytestmark
=
pytest
.
mark
.
filterwarnings
(
"error"
)
@
pytest
.
fixture
(
autouse
=
True
)
def
fix_rng_seed
():
set_rng_seed
(
0
)
...
...
@@ -539,10 +543,6 @@ def reference_affine_bounding_boxes_helper(bounding_boxes, *, affine_matrix, new
)
# turns all warnings into errors for this module
pytestmark
=
pytest
.
mark
.
filterwarnings
(
"error"
)
class
TestResize
:
INPUT_SIZE
=
(
17
,
11
)
OUTPUT_SIZES
=
[
17
,
[
17
],
(
17
,),
[
12
,
13
],
(
12
,
13
)]
...
...
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