-
Notifications
You must be signed in to change notification settings - Fork 26.3k
[ONNX] Update len symbolic #43824
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] Update len symbolic #43824
Conversation
💊 CI failures summary and remediationsAs of commit 596a73c (more details on the Dr. CI page):
Extra GitHub checks: 1 failed
codecov.io: 1 failed
This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.Please report bugs/suggestions on the GitHub issue tracker or post in the (internal) Dr. CI Users group. This comment has been revised 5 times. |
Codecov Report
@@ Coverage Diff @@
## master #43824 +/- ##
==========================================
- Coverage 69.33% 69.33% -0.01%
==========================================
Files 378 378
Lines 46723 46727 +4
==========================================
+ Hits 32397 32399 +2
- Misses 14326 14328 +2
Continue to review full report at Codecov.
|
|
|
||
| def _len(g, self): | ||
| return g.op("SequenceLength", self) | ||
| if self.type().isSubtypeOf(torch._C.ListType.ofTensors()): |
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.
Looks good. Do we have tests to cover both branches in this symbolic?
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.
yes, test_len covers the if branch, test_len_list covers the else branch
neginraoof
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.
LGTM. Thanks.
shubhambhokare1
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.
LGTM
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.
@bzinodev has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
|
@bzinodev Can we please merge this PR? Thanks! |
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.
@bzinodev has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
Summary: Update len symbolic. Pull Request resolved: #43824 Reviewed By: izdeby Differential Revision: D23575765 Pulled By: bzinodev fbshipit-source-id: 0e5c8c8d4a5297f65e2dc43168993350f784c776
Update len symbolic.