KEMBAR78
Add support for exporting onnx split by BowenBao · Pull Request #15092 · pytorch/pytorch · GitHub
Skip to content

Conversation

@BowenBao
Copy link
Collaborator

  • With the update of split output to dynamic list it breaks the export to onnx.
    Now split ir becomes two ops: 1. Dynamic[] <= Split(), and 2. out1, out2, out3
    <= Prim::ListUnpack. In this fix these two consecutive ops get fused when being
    exported to onnx.

@facebook-github-bot facebook-github-bot added the oncall: jit Add this issue/PR to JIT oncall triage queue label Dec 12, 2018
@ezyang
Copy link
Contributor

ezyang commented Dec 20, 2018

Another one for you, @houseroad ? (Or farm it out appropriately)

@houseroad
Copy link
Member

Sure, will check it.

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.

Looks good. Since you have added two symbolic, could you add another test case to make sure both of them are covered by test?

* With the update of split output to dynamic list it breaks the export to onnx.
 Now split ir becomes two ops: 1. Dynamic[] <= Split(), and 2. out1, out2, out3
 <= Prim::ListUnpack. In this fix these two consecutive ops get fused when being
 exported to onnx.
@BowenBao
Copy link
Collaborator Author

BowenBao commented Jan 4, 2019

added seperate test cases for the two symbolics, thx.

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

@BowenBao thanks!

zdevito pushed a commit to zdevito/ATen that referenced this pull request Jan 8, 2019
Summary:
* With the update of split output to dynamic list it breaks the export to onnx.
 Now split ir becomes two ops: 1. Dynamic[] <= Split(), and 2. out1, out2, out3
 <= Prim::ListUnpack. In this fix these two consecutive ops get fused when being
 exported to onnx.
Pull Request resolved: pytorch/pytorch#15092

Reviewed By: dzhulgakov

Differential Revision: D13583832

Pulled By: houseroad

fbshipit-source-id: 3eb18c871e750921ad6d5cc179254bee9bcf4c99
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

oncall: jit Add this issue/PR to JIT oncall triage queue open source

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants