-
Notifications
You must be signed in to change notification settings - Fork 26k
[ONNX] Export baddbmm #25738
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
[ONNX] Export baddbmm #25738
Changes from 16 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
1a11cda
added onnx export for baddbmm op to opset9 + tests
neginraoof 81a7505
Merge remote-tracking branch 'origin/master' into HEAD
d0c988b
Merge branch 'master' into neraoof/baddbmm
neginraoof 59bfcbe
Merge remote-tracking branch 'origin/master' into HEAD
4cd7d81
Merge branch 'master' into neraoof/baddbmm
neginraoof 924cdf1
Update test_pytorch_onnx_onnxruntime.py
neginraoof 96e2d68
Merge branch 'master' into neraoof/baddbmm
neginraoof 6ca0605
flake8 fix
neginraoof fe79f93
Merge remote-tracking branch 'origin/master' into HEAD
e951d21
Update symbolic_opset9.py
neginraoof fa32f42
casting tensors
44e7813
flake8 fix
neginraoof 38aca6c
fix for scalar casting
neginraoof e8671a1
fix for comments
b15b8d3
fixed expected graph
b11ca49
flake8 fix
f4f94b9
Merge remote-tracking branch 'origin/master' into HEAD
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,153 @@ | ||
| ir_version: 4 | ||
| producer_name: "pytorch" | ||
| producer_version: "1.2" | ||
| graph { | ||
| node { | ||
| input: "1" | ||
| input: "2" | ||
| output: "3" | ||
| op_type: "MatMul" | ||
| } | ||
| node { | ||
| output: "4" | ||
| op_type: "Constant" | ||
| attribute { | ||
| name: "value" | ||
| t { | ||
| data_type: 7 | ||
| raw_data: "\001\000\000\000\000\000\000\000" | ||
| } | ||
| type: TENSOR | ||
| } | ||
| } | ||
| node { | ||
| input: "4" | ||
| output: "5" | ||
| op_type: "Cast" | ||
| attribute { | ||
| name: "to" | ||
| i: 1 | ||
| type: INT | ||
| } | ||
| } | ||
| node { | ||
| input: "3" | ||
| input: "5" | ||
| output: "6" | ||
| op_type: "Mul" | ||
| } | ||
| node { | ||
| output: "7" | ||
| op_type: "Constant" | ||
| attribute { | ||
| name: "value" | ||
| t { | ||
| data_type: 7 | ||
| raw_data: "\001\000\000\000\000\000\000\000" | ||
| } | ||
| type: TENSOR | ||
| } | ||
| } | ||
| node { | ||
| input: "7" | ||
| output: "8" | ||
| op_type: "Cast" | ||
| attribute { | ||
| name: "to" | ||
| i: 1 | ||
| type: INT | ||
| } | ||
| } | ||
| node { | ||
| input: "0" | ||
| input: "8" | ||
| output: "9" | ||
| op_type: "Mul" | ||
| } | ||
| node { | ||
| input: "6" | ||
| input: "9" | ||
| output: "10" | ||
| op_type: "Add" | ||
| } | ||
| name: "torch-jit-export" | ||
| input { | ||
| name: "0" | ||
| type { | ||
| tensor_type { | ||
| elem_type: 1 | ||
| shape { | ||
| dim { | ||
| dim_value: 10 | ||
| } | ||
| dim { | ||
| dim_value: 3 | ||
| } | ||
| dim { | ||
| dim_value: 5 | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| input { | ||
| name: "1" | ||
| type { | ||
| tensor_type { | ||
| elem_type: 1 | ||
| shape { | ||
| dim { | ||
| dim_value: 10 | ||
| } | ||
| dim { | ||
| dim_value: 3 | ||
| } | ||
| dim { | ||
| dim_value: 4 | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| input { | ||
| name: "2" | ||
| type { | ||
| tensor_type { | ||
| elem_type: 1 | ||
| shape { | ||
| dim { | ||
| dim_value: 10 | ||
| } | ||
| dim { | ||
| dim_value: 4 | ||
| } | ||
| dim { | ||
| dim_value: 5 | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| output { | ||
| name: "10" | ||
| type { | ||
| tensor_type { | ||
| elem_type: 1 | ||
| shape { | ||
| dim { | ||
| dim_value: 10 | ||
| } | ||
| dim { | ||
| dim_value: 3 | ||
| } | ||
| dim { | ||
| dim_value: 5 | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| opset_import { | ||
| version: 9 | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.