-
Notifications
You must be signed in to change notification settings - Fork 7.1k
CI broken due to Core issue #6166
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
This comment was marked as off-topic.
This comment was marked as off-topic.
@datumbox I think that problem is not related to the broken CI. |
I can't really point out which pytorch core PR that cause this problem, however I think this issue can also be fixed on our side by wrapping around the padding function with
and here is the quick fix (although it feels hacky...)
|
@YosuaMichael you are right, we can do that but whatever caused the change, it's breaking BC. So ideally we would like to have it fixed on Core to avoid downstream users outside of TorchVision. |
@datumbox yeah thats right, it might break other downstream users as well. |
Given that there were no recent updates on the FX area, the problem can be on the dispatcher or modifications affecting @vfdev-5 Could you please help us with a bisection to find the suspicious commit? |
Doing git bisect, it tells me that:
This commit breaks the snippet from @YosuaMichael , #6166 (comment): import torch
import torch.fx
import torch.nn.functional as F
class CustomModule(torch.nn.Module):
def forward(self, x):
bs, c, h, w = x.shape
return F.pad(x, (0, w%2, 0, h%2, 0, 0))
m = CustomModule()
x = torch.rand(1, 3, 4, 4)
m_fx = torch.fx.symbolic_trace(m) EDIT: Checked explicitly:
|
How much do you trust this repro test to capture all the breakage |
@ezyang it's a very new test in a very new model. So perhaps if you want to add a smoke test on your side, you can take the Yosua's snippet above. It's an issue that we haven't seen before so it's hard to tell how many other issues it can capture. |
If we replace in the model defintion offending place
So, I think this is the only place that breaks the CI |
The problem is now fixed, thanks a lot for your help everyone! |
Our unittest jobs started failing with the latest nightly from core (from the 14th) with
I'm unable to pin-point a specific PR in torch core though. Perhaps this is something @jamesr66a could help with? Thanks!
The text was updated successfully, but these errors were encountered: