-
Notifications
You must be signed in to change notification settings - Fork 22.1k
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
[ONNX] disable size optimizations #35401
Conversation
💊 CircleCI build failures summary and remediationsAs of commit 96af1f3 (more details on the Dr. CI page):
🕵️ 2 new failures recognized by patternsThe following build failures do not appear to be due to upstream breakages: pytorch_linux_xenial_py3_6_gcc5_4_build (1/2)Step: "Build" (full log | pattern match details) <confirmed not flaky by 2 failures>
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@eellison has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
859ae96
to
ce8e670
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@eellison has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
@eellison the failure in onnx test import torch
class DimModel(torch.nn.Module):
def forward(self, input):
out = input * 2
out *= out.dim()
return out
m = torch.jit.script(DimModel())
input_1 = torch.arange(6).view(2, 3)
print(m(input_1))
"""
outputs tensor([[ 0, 4, 8],
[12, 16, 20]])
"""
input_2 = torch.arange(6).view(1, 2, 3)
print(m(input_2))
"""
outputs tensor([[[ 0, 4, 8],
[12, 16, 20]]])
but should be tensor([[[ 0, 6, 12],
[18, 24, 30]]])
The correct result can also be produced if DimModel()(input_1) is commented
""" edit: cc @houseroad |
@BowenBao when I check the results against eager I don't get any difference:
|
@eellison what is self in the snippet above? I changed
Could you verify if you are using the pytorch build of this pr? |
Yep, I ran it again on
|
@eellison that's strange, this is the repro I fetched from the CI failure.
|
Summary: Reviving this PR pytorch#35401 eellison. I believe after the profiled graph executor fix the test failures are handled. Pull Request resolved: pytorch#36243 Differential Revision: D20950623 Pulled By: eellison fbshipit-source-id: 5fbee426d1a098d84d5938540d45ce00828299be
Seeing which tests fail in the CI.