-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Nondeterministic type checking on pytorch/vision #19121
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
Comments
One more example with random primer diffs on |
xarray might be a newer regression, since I can't repro with a few runs of |
Almost sure that xarray will bisect to #18976 (where it appeared for the
first time and was expected), but that's not the cause - xarray
indeterminism looks like the problem with noncommutative meet/join we are
already aware of. I wasn't able to repro it - any MRE I managed to think of
fails every time, not randomly.
…On Fri, May 23, 2025, 22:50 Shantanu ***@***.***> wrote:
*hauntsaninja* left a comment (python/mypy#19121)
<#19121 (comment)>
xarray might be a newer regression, since I can't repro with a few runs of mypy_primer
--new 'v1.15' --old 'v1.15' -k pydata/xarray --debug --output concise.
I'll try to bisect it later
—
Reply to this email directly, view it on GitHub
<#19121 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMBQIRDYJP63OYNQYXC24KL276CX5AVCNFSM6AAAAAB5RKR64SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDSMBVG44DCMBZHA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Simple minimised version of torchvision:
|
The vision one will be fixed by #19147 I think something similar will fix xarray. Both of these look like nonassociative issue (not a noncommutative issue!). I will do it in a follow up PR |
…oins (#19158) Fixes #19121 (xarray case) See #19147 for context The ordering of the union is still nondeterministic. We could solve this by change the solver to use `dict[Type, None` instead of `set[Type]` since dicts are ordered. But doing so could paper over further bad solving from nonassociativity or noncommutativity
Repro with e.g.
mypy_primer --new 'v1.15' --old 'v1.15' -k vision --debug
:Linking hauntsaninja/mypy_primer#161
The text was updated successfully, but these errors were encountered: