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
dda5bfac
Unverified
Commit
dda5bfac
authored
May 15, 2023
by
Nicolas Hug
Committed by
GitHub
May 15, 2023
Browse files
Fix lint (#7588)
parent
9b7c7d39
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
.github/workflows/lint.yml
.github/workflows/lint.yml
+0
-2
test/smoke_test.py
test/smoke_test.py
+1
-0
No files found.
.github/workflows/lint.yml
View file @
dda5bfac
...
@@ -28,7 +28,6 @@ jobs:
...
@@ -28,7 +28,6 @@ jobs:
pip install --progress-bar=off pre-commit
pip install --progress-bar=off pre-commit
echo '::endgroup::'
echo '::endgroup::'
echo '::group::Lint Python source and configs'
set +e
set +e
pre-commit run --all-files
pre-commit run --all-files
...
@@ -36,7 +35,6 @@ jobs:
...
@@ -36,7 +35,6 @@ jobs:
git --no-pager diff
git --no-pager diff
exit 1
exit 1
fi
fi
echo '::endgroup::'
c-source
:
c-source
:
uses
:
pytorch/test-infra/.github/workflows/linux_job.yml@main
uses
:
pytorch/test-infra/.github/workflows/linux_job.yml@main
...
...
test/smoke_test.py
View file @
dda5bfac
...
@@ -26,6 +26,7 @@ def smoke_test_torchvision_read_decode() -> None:
...
@@ -26,6 +26,7 @@ def smoke_test_torchvision_read_decode() -> None:
if
img_png
.
shape
!=
(
4
,
471
,
354
):
if
img_png
.
shape
!=
(
4
,
471
,
354
):
raise
RuntimeError
(
f
"Unexpected shape of img_png:
{
img_png
.
shape
}
"
)
raise
RuntimeError
(
f
"Unexpected shape of img_png:
{
img_png
.
shape
}
"
)
def
smoke_test_torchvision_decode_jpeg
(
device
:
str
=
"cpu"
):
def
smoke_test_torchvision_decode_jpeg
(
device
:
str
=
"cpu"
):
img_jpg_data
=
read_file
(
str
(
SCRIPT_DIR
/
"assets"
/
"encode_jpeg"
/
"grace_hopper_517x606.jpg"
))
img_jpg_data
=
read_file
(
str
(
SCRIPT_DIR
/
"assets"
/
"encode_jpeg"
/
"grace_hopper_517x606.jpg"
))
img_jpg
=
decode_jpeg
(
img_jpg_data
,
device
=
device
)
img_jpg
=
decode_jpeg
(
img_jpg_data
,
device
=
device
)
...
...
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