Skip to content

Conversation

neginraoof
Copy link
Contributor

updated export for topk and sort as part of opset11

@pytorchbot pytorchbot added the module: onnx Related to torch.onnx label Sep 5, 2019
@neginraoof
Copy link
Contributor Author

@pytorchbot rebase this please

@neginraoof
Copy link
Contributor Author

@pytorchbot retest this please

1 similar comment
@neginraoof
Copy link
Contributor Author

@pytorchbot retest this please

@neginraoof
Copy link
Contributor Author

@pytorchbot rebase this please

@neginraoof
Copy link
Contributor Author

@pytorchbot rebase this please

@neginraoof
Copy link
Contributor Author

@houseroad please review as this op is requested

@neginraoof
Copy link
Contributor Author

cc @BowenBao @lara-hdr

Copy link
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.

@neginraoof
Copy link
Contributor Author

@pytorchbot retest this please

@neginraoof
Copy link
Contributor Author

@pytorchbot rebase this please

Copy link
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.

@yf225 yf225 added the triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module label Sep 25, 2019
@neginraoof
Copy link
Contributor Author

cc @houseroad for review

@houseroad
Copy link
Member

@pytorchbot rebase this please

Copy link
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.

@houseroad
Copy link
Member

@neginraoof update the expect files please

@neginraoof
Copy link
Contributor Author

@houseroad done, thanks

Copy link
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.

Copy link

@spandantiwari spandantiwari left a comment

Choose a reason for hiding this comment

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

LGTM.

start = g.op("Constant", value_t=torch.tensor(dim, dtype=torch.int64))
end = g.op("Constant", value_t=torch.tensor(dim + 1, dtype=torch.int64))
slice_ = _slice_helper(g, shape_, axes=axis, starts=start, ends=end, steps=None, dynamic_slice=True)
if _export_onnx_opset_version <= 10:

Choose a reason for hiding this comment

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

Ideally my preference is to not capture the entire implementation in a helper function like this, especially when the implementation differs between two opsets like in this case. We should write the implementation in the opset's respective symbolic_opset*. We can capture the common parts of the implementation in a helper function.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, makes sense

Copy link
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.

LGTM

@facebook-github-bot
Copy link
Contributor

@houseroad merged this pull request in d93fc64.

pdlive215 pushed a commit to pdlive215/pytorch that referenced this pull request Nov 27, 2019
Summary:
updated export for topk and sort as part of opset11
Pull Request resolved: pytorch#25739

Reviewed By: hl475

Differential Revision: D17467131

Pulled By: houseroad

fbshipit-source-id: 653be138455728ec8e9bb81ae63dd7ce0c4d0793
thiagocrepaldi pushed a commit to thiagocrepaldi/pytorch that referenced this pull request Feb 4, 2020
Summary:
updated export for topk and sort as part of opset11
Pull Request resolved: pytorch#25739

Reviewed By: hl475

Differential Revision: D17467131

Pulled By: houseroad

fbshipit-source-id: 653be138455728ec8e9bb81ae63dd7ce0c4d0793
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Merged module: onnx Related to torch.onnx open source triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants