Skip to content

Conversation

@BowenBao
Copy link
Collaborator

@BowenBao BowenBao commented Oct 2, 2020

Summary:

  • Support propagating dim_param in ONNX by encoding as ShapeSymbol in SymbolicShape of outputs. If export is called with dynamic_axes provided, shape inference will start with these axes set as dynamic.
  • Add new test file test_pytorch_onnx_shape_inference.py, reusing all test cases from test_pytorch_onnx_onnxruntime.py, but focus on validating shape for all nodes in graph. Currently this is not enabled in the CI, since there are still quite some existing issues and corner cases to fix. The test is default to run only at opset 12.
  • Bug fixes, such as div, _len, and peephole.cpp passes for PackPadded, and LogSoftmaxCrossEntropy.
  • This PR depends on existing PR such as 44332.

Pull Request resolved: #44920

Reviewed By: eellison

Differential Revision: D23958398

Pulled By: bzinodev

fbshipit-source-id: 00479d9bd19c867d526769a15ba97ec16d56e51d

Fixes #{issue number}

…orch#44920)

Summary:
* Support propagating `dim_param` in ONNX by encoding as `ShapeSymbol` in `SymbolicShape` of outputs. If export is called with `dynamic_axes` provided, shape inference will start with these axes set as dynamic.
* Add new test file `test_pytorch_onnx_shape_inference.py`, reusing all test cases from `test_pytorch_onnx_onnxruntime.py`, but focus on validating shape for all nodes in graph. Currently this is not enabled in the CI, since there are still quite some existing issues and corner cases to fix. The test is default to run only at opset 12.
* Bug fixes, such as div, _len, and peephole.cpp passes for PackPadded, and LogSoftmaxCrossEntropy.
* This PR depends on existing PR such as 44332.

Pull Request resolved: pytorch#44920

Reviewed By: eellison

Differential Revision: D23958398

Pulled By: bzinodev

fbshipit-source-id: 00479d9bd19c867d526769a15ba97ec16d56e51d
@BowenBao BowenBao requested a review from apaszke as a code owner October 2, 2020 18:06
@facebook-github-bot facebook-github-bot added the oncall: jit Add this issue/PR to JIT oncall triage queue label Oct 2, 2020
@VitalyFedyunin VitalyFedyunin requested a review from gchanan October 5, 2020 23:13
@albanD albanD added the triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module label Oct 6, 2020
@soumith soumith merged commit 173a719 into pytorch:release/1.7 Oct 6, 2020
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 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.

5 participants