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
f2b6f43a
Unverified
Commit
f2b6f43a
authored
Aug 09, 2023
by
Nicolas Hug
Committed by
GitHub
Aug 09, 2023
Browse files
Fix main (#7816)
parent
1db6907b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
11 deletions
+3
-11
test/test_transforms_v2_refactored.py
test/test_transforms_v2_refactored.py
+3
-11
No files found.
test/test_transforms_v2_refactored.py
View file @
f2b6f43a
...
@@ -2240,17 +2240,9 @@ class TestPermuteChannels:
...
@@ -2240,17 +2240,9 @@ class TestPermuteChannels:
def
test_kernel
(
self
,
kernel
,
make_input
,
dtype
,
device
):
def
test_kernel
(
self
,
kernel
,
make_input
,
dtype
,
device
):
check_kernel
(
kernel
,
make_input
(
dtype
=
dtype
,
device
=
device
),
permutation
=
self
.
_DEFAULT_PERMUTATION
)
check_kernel
(
kernel
,
make_input
(
dtype
=
dtype
,
device
=
device
),
permutation
=
self
.
_DEFAULT_PERMUTATION
)
@
pytest
.
mark
.
parametrize
(
@
pytest
.
mark
.
parametrize
(
"make_input"
,
[
make_image_tensor
,
make_image_pil
,
make_image
,
make_video
])
(
"kernel"
,
"make_input"
),
def
test_dispatcher
(
self
,
make_input
):
[
check_dispatcher
(
F
.
permute_channels
,
make_input
(),
permutation
=
self
.
_DEFAULT_PERMUTATION
)
(
F
.
permute_channels_image_tensor
,
make_image_tensor
),
(
F
.
permute_channels_image_pil
,
make_image_pil
),
(
F
.
permute_channels_image_tensor
,
make_image
),
(
F
.
permute_channels_video
,
make_video
),
],
)
def
test_dispatcher
(
self
,
kernel
,
make_input
):
check_dispatcher
(
F
.
permute_channels
,
kernel
,
make_input
(),
permutation
=
self
.
_DEFAULT_PERMUTATION
)
@
pytest
.
mark
.
parametrize
(
@
pytest
.
mark
.
parametrize
(
(
"kernel"
,
"input_type"
),
(
"kernel"
,
"input_type"
),
...
...
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