[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:
|
facebook-github-bot
left a comment
There was a problem hiding this comment.
@eellison has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
859ae96 to
ce8e670
Compare
facebook-github-bot
left a comment
There was a problem hiding this comment.
@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
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.