-
Notifications
You must be signed in to change notification settings - Fork 26.3k
[ONNX] Export Meshgrid #26037
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
[ONNX] Export Meshgrid #26037
Conversation
BowenBao
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some inline comments
torch/onnx/symbolic_opset9.py
Outdated
| for i, t in enumerate(tensors): | ||
| if t.isCompleteTensor(): | ||
| shape_i = [g.op("Constant", value_t=torch.ones(1, dtype=torch.int64))] * len(tensors) | ||
| shape_i[i] = g.op("Shape", t) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
consider reusing tensors_shape above..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is not tensors shape. This is [1,1,..,n,1,...]
|
test if failing for opset7. |
BowenBao
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LG, one last inline comment. Also please update expect file for test_operators
Co-Authored-By: Bowen Bao <[email protected]>
facebook-github-bot
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@izdeby has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
|
@pytorchbot rebase this please |
facebook-github-bot
left a comment
There was a problem hiding this 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
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please make sure CIs are green.
|
@houseroad please review updates. |
|
cc @houseroad for review |
|
@pytorchbot rebase this please |
1 similar comment
|
@pytorchbot rebase this please |
|
@pytorchbot retest this please |
|
@pytorchbot rebase this please |
|
@houseroad please review the updates |
|
The test is still failing. |
|
@houseroad Thanks. The CI was green before I rebased. The failing test is: |
|
@pytorchbot retest this please |
|
@houseroad Tests have passed. |
facebook-github-bot
left a comment
There was a problem hiding this 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 merged this pull request in 60d6060. |
Exporting meshgrid op in opset 9 symbolics