Skip to content

[ONNX] Enable tests for opset 12#37846

Closed
neginraoof wants to merge 12 commits intopytorch:masterfrom
neginraoof:master
Closed

[ONNX] Enable tests for opset 12#37846
neginraoof wants to merge 12 commits intopytorch:masterfrom
neginraoof:master

Conversation

@neginraoof
Copy link
Copy Markdown
Contributor

@neginraoof neginraoof commented May 5, 2020

Update ORT nightly version and enable opset 12 tests.

@dr-ci
Copy link
Copy Markdown

dr-ci Bot commented May 5, 2020

💊 CI failures summary and remediations

As of commit b792f48 (more details on the Dr. CI page):


💚 💚 Looks good so far! There are no failures yet. 💚 💚


This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions on the GitHub issue tracker.

See how this bot performed.

This comment has been revised 21 times.

@neginraoof neginraoof changed the title [WIP ONNX] Test opset 12 [WIP ONNX] Enable tests for opset 12 May 5, 2020
@neginraoof neginraoof changed the title [WIP ONNX] Enable tests for opset 12 [ONNX] Enable tests for opset 12 May 6, 2020
class MyModule(torch.nn.Module):
def forward(self, x, k):
return torch.topk(x, k, largest=False, sorted=False)
# When sorted=False, order of elements in the outout tensors
Copy link
Copy Markdown
Contributor Author

@neginraoof neginraoof May 6, 2020

Choose a reason for hiding this comment

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

This is a change in behavior in the newest ORT build, but it is expected (not a bug).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

are we planning on supporting this case?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We do support this case, but since the output tensor is not sorted (sorted=False), the order of elements in ORT output tensor is different from PyTorch output. This is expected.

Copy link
Copy Markdown
Contributor

@lara-hdr lara-hdr left a comment

Choose a reason for hiding this comment

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

There is a merge conflict, but LGTM

class MyModule(torch.nn.Module):
def forward(self, x, k):
return torch.topk(x, k, largest=False, sorted=False)
# When sorted=False, order of elements in the outout tensors
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

are we planning on supporting this case?

Copy link
Copy Markdown
Collaborator

@BowenBao BowenBao left a comment

Choose a reason for hiding this comment

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

LGTM

@neginraoof
Copy link
Copy Markdown
Contributor Author

@houseroad Can you please review this?
Thanks

Copy link
Copy Markdown
Member

@houseroad houseroad left a comment

Choose a reason for hiding this comment

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

thanks

Copy link
Copy Markdown
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@houseroad has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Copy Markdown
Contributor

@houseroad merged this pull request in 29f19bf.

malfet added a commit to malfet/pytorch that referenced this pull request Jun 11, 2020
seemethere pushed a commit that referenced this pull request Jun 11, 2020
* [ONNX] Fix pow op export (#38065)

Summary:
Fix pow type cast for opset 9 and update opset 12
Pull Request resolved: #38065

Differential Revision: D21485353

Pulled By: malfet

fbshipit-source-id: 3993e835ffad07b2e6585eb5cf1cb7c8474de2ec

* Update ort-nighly version as suggested in #39685 (comment)

* Apply changes from #37846 to  `test_topk_smallest_unsorted`

Co-authored-by: neginraoof <neginmr@utexas.edu>
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
Summary:
Update ORT nightly version and enable opset 12 tests.
Pull Request resolved: pytorch#37846

Reviewed By: hl475

Differential Revision: D21467903

Pulled By: houseroad

fbshipit-source-id: 20d249790edfb0091a02ebfc58c3d306087e8471
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.

7 participants