KEMBAR78
[Experimental][ONNX] Export with symbolic shapes in proto by BowenBao · Pull Request #112179 · pytorch/pytorch · GitHub
Skip to content

Conversation

@BowenBao
Copy link
Collaborator

@BowenBao BowenBao commented Oct 26, 2023

Stack from ghstack (oldest at bottom):

Experimental feature to store symbolic shapes produced by torch dynamo inside the exported onnx model.
There is no official ONNX spec to support nodes within FunctionProto to have value info, onnx/onnx#5487. The names for value info are generated uniquely to be retrievable based on the call site and call stack.
This requires onnxscript with https://github.com/microsoft/onnxscript/tree/bowbao/export_symbolic_shapes

@pytorch-bot
Copy link

pytorch-bot bot commented Oct 26, 2023

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/112179

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 4459e9c with merge base b6a30bb (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@pytorch-bot pytorch-bot bot added the release notes: onnx torch.onnx related changes that should show up in the release notes label Oct 26, 2023
BowenBao added a commit that referenced this pull request Oct 26, 2023
BowenBao added a commit that referenced this pull request Nov 3, 2023
BowenBao added a commit that referenced this pull request Nov 10, 2023
BowenBao added a commit that referenced this pull request Nov 18, 2023
…ith symbolic shapes in proto"


Experimental feature to store symbolic shapes produced by torch dynamo inside the exported onnx model.
There is no official ONNX spec to support nodes within FunctionProto to have value info, onnx/onnx#5487. The names for value info are generated uniquely to be retrievable based on the call site and call stack.
This requires onnxscript with https://github.com/microsoft/onnxscript/tree/bowbao/export_symbolic_shapes



[ghstack-poisoned]
BowenBao added a commit that referenced this pull request Nov 21, 2023
Experimental feature to store symbolic shapes produced by torch dynamo inside the exported onnx model.
There is no official ONNX spec to support nodes within FunctionProto to have value info, onnx/onnx#5487. The names for value info are generated uniquely to be retrievable based on the call site and call stack.
This requires onnxscript with https://github.com/microsoft/onnxscript/tree/bowbao/export_symbolic_shapes



[ghstack-poisoned]
BowenBao added a commit that referenced this pull request Nov 21, 2023
@BowenBao BowenBao marked this pull request as ready for review November 21, 2023 22:35
@BowenBao BowenBao added the topic: new features topic category label Nov 21, 2023
…Export with symbolic shapes in proto"


Experimental feature to store symbolic shapes produced by torch dynamo inside the exported onnx model.
There is no official ONNX spec to support nodes within FunctionProto to have value info, onnx/onnx#5487. The names for value info are generated uniquely to be retrievable based on the call site and call stack.
This requires onnxscript with https://github.com/microsoft/onnxscript/tree/bowbao/export_symbolic_shapes



[ghstack-poisoned]
BowenBao added a commit that referenced this pull request Nov 22, 2023
@titaiwangms
Copy link
Collaborator

This requires onnxscript with https://github.com/microsoft/onnxscript/tree/bowbao/export_symbolic_shapes

The link doesn't work on my side. Is it a PR in onnxscript?

@titaiwangms
Copy link
Collaborator

This requires onnxscript with https://github.com/microsoft/onnxscript/tree/bowbao/export_symbolic_shapes

The link doesn't work on my side. Is it a PR in onnxscript?

Found it. It's merged.

BowenBao added a commit that referenced this pull request Nov 25, 2023
@BowenBao
Copy link
Collaborator Author

@pytorchbot merge

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@pytorchmergebot
Copy link
Collaborator

Merge failed

Reason: 1 jobs have failed, first few of them are: docker-builds / docker-build (pytorch-linux-focal-rocm-n-1-py3)

Details for Dev Infra team Raised by workflow job

@BowenBao
Copy link
Collaborator Author

@pytorchbot merge

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@pytorchmergebot
Copy link
Collaborator

Merge failed

Reason: 1 jobs have failed, first few of them are: docker-builds / docker-build (pytorch-linux-focal-rocm-n-1-py3)

Details for Dev Infra team Raised by workflow job

@BowenBao
Copy link
Collaborator Author

@pytorchbot merge

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

pytorchmergebot pushed a commit that referenced this pull request Nov 30, 2023
pytorchmergebot pushed a commit that referenced this pull request Nov 30, 2023
Increases perf accuracy especially for low iteration runs.

Pull Request resolved: #114821
Approved by: https://github.com/thiagocrepaldi
ghstack dependencies: #112179, #114767
@facebook-github-bot facebook-github-bot deleted the gh/BowenBao/310/head branch December 3, 2023 15:26
tmavima2251 pushed a commit to tmavima2251/Pytorch that referenced this pull request Dec 8, 2023
dmenig pushed a commit to dmenig/pytorch that referenced this pull request Dec 21, 2023
…2179)

Experimental feature to store symbolic shapes produced by torch dynamo inside the exported onnx model.
There is no official ONNX spec to support nodes within FunctionProto to have value info, onnx/onnx#5487. The names for value info are generated uniquely to be retrievable based on the call site and call stack.
This requires onnxscript with https://github.com/microsoft/onnxscript/tree/bowbao/export_symbolic_shapes

Pull Request resolved: pytorch#112179
Approved by: https://github.com/titaiwangms, https://github.com/thiagocrepaldi
dmenig pushed a commit to dmenig/pytorch that referenced this pull request Dec 21, 2023
dmenig pushed a commit to dmenig/pytorch that referenced this pull request Dec 21, 2023
Increases perf accuracy especially for low iteration runs.

Pull Request resolved: pytorch#114821
Approved by: https://github.com/thiagocrepaldi
ghstack dependencies: pytorch#112179, pytorch#114767
@thiagocrepaldi
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk Trigger trunk jobs on your pull request Merged open source release notes: onnx torch.onnx related changes that should show up in the release notes topic: new features topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants