KEMBAR78
Replace use of ConstantLike with with ConstantOfShape by spandantiwari · Pull Request #16095 · pytorch/pytorch · GitHub
Skip to content

Conversation

@spandantiwari
Copy link

Submitting this PR as an update to existing PR (#15938) on @houseroad 's request.

This PR replaces the use of ONNX op ConstantLike with ConstantOfShape in the ONNX exporter. In addition to removing the call sites in symbolic.py, it also replace the call site in peephole.cpp.

@facebook-github-bot facebook-github-bot added the oncall: jit Add this issue/PR to JIT oncall triage queue label Jan 17, 2019
@ezyang ezyang requested a review from houseroad January 17, 2019 06:43
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.

Overall looks good, but I need to add Caffe2 ConstantOfShape op to Caffe2. Otherwise, the end to end test on RNN models won't work.

@spandantiwari
Copy link
Author

@houseroad - There's some failure in test run and I am not sure I understand why. Could you please take a look and advise.

@houseroad
Copy link
Member

Yes, I am working on that

@spandantiwari spandantiwari force-pushed the spandantiwari/replace_with_constantofshape branch from c28ac61 to 1bfa277 Compare January 18, 2019 01:41
@houseroad houseroad force-pushed the spandantiwari/replace_with_constantofshape branch from 1bfa277 to 3d0f6e3 Compare January 19, 2019 04:09
facebook-github-bot pushed a commit that referenced this pull request Jan 19, 2019
Summary:
This PR is the prerequisite to land #16095
Pull Request resolved: #16108

Reviewed By: BIT-silence

Differential Revision: D13725722

Pulled By: houseroad

fbshipit-source-id: 28c0fb72f075cd04f9db44dfab0163844c20c620
@houseroad houseroad force-pushed the spandantiwari/replace_with_constantofshape branch from 3d0f6e3 to d18bf90 Compare January 19, 2019 18:00
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
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. Thanks.

zdevito pushed a commit to zdevito/ATen that referenced this pull request Jan 20, 2019
Summary:
Submitting this PR as an update to existing PR (pytorch/pytorch#15938) on houseroad 's request.

This PR replaces the use of ONNX op `ConstantLike` with `ConstantOfShape` in the ONNX exporter. In addition to removing the call sites in `symbolic.py`, it also replace the call site in `peephole.cpp`.
Pull Request resolved: pytorch/pytorch#16095

Differential Revision: D13745723

Pulled By: houseroad

fbshipit-source-id: e2a5f534f01adf199df9e27544f7afcfa540e1f0
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