Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip some warning test on 3.10 to avoid MKL-related warning (and failure) #7373

Closed
wants to merge 4 commits into from

Conversation

NicolasHug
Copy link
Member

CC @malfet @atalman following up on our offline conversation, feel free to merge this PR or to submit a quick fix by pinning the numpy version as discussed.

@@ -27,13 +27,15 @@ def smoke_test_torchvision_read_decode() -> None:
if img_png.ndim != 3 or img_png.numel() < 100:
raise RuntimeError(f"Unexpected shape of img_png: {img_png.shape}")


Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these are drive-bys from pre-commit

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, they come from #7359.

Copy link
Collaborator

@pmeier pmeier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@@ -27,13 +27,15 @@ def smoke_test_torchvision_read_decode() -> None:
if img_png.ndim != 3 or img_png.numel() < 100:
raise RuntimeError(f"Unexpected shape of img_png: {img_png.shape}")


Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, they come from #7359.

test/test_transforms.py Outdated Show resolved Hide resolved
test/test_transforms_v2.py Outdated Show resolved Hide resolved
test/test_transforms_v2.py Outdated Show resolved Hide resolved
Copy link
Contributor

@atalman atalman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@malfet malfet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. By the way, did some digging: somehow those failures are triggered by pytest environment: running the same script outside of pytest did not result in the failure.

@pmeier
Copy link
Collaborator

pmeier commented Mar 1, 2023

It seems the issue is gone after #7189:

https://github.com/pytorch/vision/actions/runs/4308089284/jobs/7513938565#step:10:2643

I'll send a separate PR for the lint fixes. But otherwise, we can probably close this one?

@NicolasHug NicolasHug changed the base branch from main to release/0.15 March 2, 2023 10:21
@NicolasHug NicolasHug changed the base branch from release/0.15 to main March 2, 2023 10:21
@NicolasHug
Copy link
Member Author

Thanks all. The [surfacing of the] issue is gone on main as @pmeier described just above so I'll close this one and open the same PR against release/0.15 instead. (we could also cherry-pick #7189 into the release branch but that sounds riskier)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants