Unverified Commit dda5bfac authored by Nicolas Hug's avatar Nicolas Hug Committed by GitHub
Browse files

Fix lint (#7588)

parent 9b7c7d39
...@@ -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
......
...@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment