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
1fda0e85
Unverified
Commit
1fda0e85
authored
Nov 23, 2023
by
Philip Meier
Committed by
GitHub
Nov 23, 2023
Browse files
fix atol in resize_image kernel test (#8133)
parent
ec7f80be
Changes
1
Show 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 @
1fda0e85
...
@@ -599,7 +599,7 @@ class TestResize:
...
@@ -599,7 +599,7 @@ class TestResize:
# In contrast to CPU, there is no native `InterpolationMode.BICUBIC` implementation for uint8 images on CUDA.
# In contrast to CPU, there is no native `InterpolationMode.BICUBIC` implementation for uint8 images on CUDA.
# Internally, it uses the float path. Thus, we need to test with an enormous tolerance here to account for that.
# Internally, it uses the float path. Thus, we need to test with an enormous tolerance here to account for that.
atol
=
30
if
transforms
.
InterpolationMode
.
BICUBIC
and
dtype
is
torch
.
uint8
else
1
atol
=
30
if
(
interpolation
is
transforms
.
InterpolationMode
.
BICUBIC
and
dtype
is
torch
.
uint8
)
else
1
check_cuda_vs_cpu_tolerances
=
dict
(
rtol
=
0
,
atol
=
atol
/
255
if
dtype
.
is_floating_point
else
atol
)
check_cuda_vs_cpu_tolerances
=
dict
(
rtol
=
0
,
atol
=
atol
/
255
if
dtype
.
is_floating_point
else
atol
)
check_kernel
(
check_kernel
(
...
...
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