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
ec7f80be
"...source/git@developer.sourcefind.cn:OpenDAS/fairscale.git" did not exist on "274478d0ed8e1befa11995fbab9d6b4b136af75a"
Unverified
Commit
ec7f80be
authored
Nov 23, 2023
by
Philip Meier
Committed by
GitHub
Nov 23, 2023
Browse files
fix error test for F.pad_mask (#8132)
parent
3eb4333e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
test/test_transforms_v2.py
test/test_transforms_v2.py
+1
-1
No files found.
test/test_transforms_v2.py
View file @
ec7f80be
...
...
@@ -3641,7 +3641,7 @@ class TestPad:
@
pytest
.
mark
.
parametrize
(
"fill"
,
[[
1
],
(
0
,),
[
1
,
0
,
1
],
(
0
,
1
,
0
)])
def
test_kernel_mask_errors
(
self
,
fill
):
with
pytest
.
raises
(
ValueError
,
match
=
"Non-scalar fill value is not supported"
):
check_kernel
(
F
.
pad_mask
,
make_segmentation_mask
(),
padding
=
[
1
],
fill
=
fill
)
F
.
pad_mask
(
make_segmentation_mask
(),
padding
=
[
1
],
fill
=
fill
)
def
test_kernel_video
(
self
):
check_kernel
(
F
.
pad_video
,
make_video
(),
padding
=
[
1
])
...
...
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