Skip to content

Conversation

@KsenijaS
Copy link
Contributor

Update len symbolic.

@dr-ci
Copy link

dr-ci bot commented Aug 29, 2020

💊 CI failures summary and remediations

As of commit 596a73c (more details on the Dr. CI page):


  • 2/2 failures possibly* introduced in this PR
    • 2/2 non-CircleCI failure(s)

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.

See how this bot performed.

This comment has been revised 5 times.

@codecov
Copy link

codecov bot commented Aug 31, 2020

Codecov Report

Merging #43824 into master will decrease coverage by 0.00%.
The diff coverage is 20.00%.

Impacted file tree graph

@@            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     
Impacted Files Coverage Δ
torch/onnx/symbolic_opset11.py 23.02% <0.00%> (-0.11%) ⬇️
torch/onnx/symbolic_opset9.py 35.82% <50.00%> (+0.01%) ⬆️
torch/onnx/symbolic_registry.py 72.13% <0.00%> (+1.63%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6490649...596a73c. Read the comment docs.

@ailzhang ailzhang requested a review from bzinodev August 31, 2020 22:32
@ailzhang ailzhang added the triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module label Aug 31, 2020

def _len(g, self):
return g.op("SequenceLength", self)
if self.type().isSubtypeOf(torch._C.ListType.ofTensors()):
Copy link
Contributor

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?

Copy link
Contributor Author

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

Copy link
Contributor

@neginraoof neginraoof left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks.

Copy link
Collaborator

@shubhambhokare1 shubhambhokare1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a 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.

@KsenijaS
Copy link
Contributor Author

@bzinodev Can we please merge this PR? Thanks!

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a 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.

@facebook-github-bot
Copy link
Contributor

@bzinodev merged this pull request in f7cfbac.

xuzhao9 pushed a commit that referenced this pull request Sep 18, 2020
Summary:
Update len symbolic.

Pull Request resolved: #43824

Reviewed By: izdeby

Differential Revision: D23575765

Pulled By: bzinodev

fbshipit-source-id: 0e5c8c8d4a5297f65e2dc43168993350f784c776
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Merged 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.

8 participants