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
ed9207d7
Unverified
Commit
ed9207d7
authored
Mar 10, 2023
by
Nicolas Hug
Committed by
GitHub
Mar 10, 2023
Browse files
Fix lint (#7408)
parent
82cf540b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
test/test_image.py
test/test_image.py
+1
-1
No files found.
test/test_image.py
View file @
ed9207d7
...
@@ -368,10 +368,10 @@ def test_decode_jpeg_cuda(mode, img_path, scripted):
...
@@ -368,10 +368,10 @@ def test_decode_jpeg_cuda(mode, img_path, scripted):
# Some difference expected between jpeg implementations
# Some difference expected between jpeg implementations
assert
(
img
.
float
()
-
img_nvjpeg
.
cpu
().
float
()).
abs
().
mean
()
<
2
assert
(
img
.
float
()
-
img_nvjpeg
.
cpu
().
float
()).
abs
().
mean
()
<
2
@
needs_cuda
@
needs_cuda
def
test_decode_image_cuda_raises
():
def
test_decode_image_cuda_raises
():
data
=
torch
.
randint
(
0
,
127
,
size
=
(
255
,),
device
=
"cuda"
,
dtype
=
torch
.
uint8
)
data
=
torch
.
randint
(
0
,
127
,
size
=
(
255
,),
device
=
"cuda"
,
dtype
=
torch
.
uint8
)
exception_raised
=
True
with
pytest
.
raises
(
RuntimeError
):
with
pytest
.
raises
(
RuntimeError
):
decode_image
(
data
)
decode_image
(
data
)
...
...
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