Skip to content

Conversation

@mikeiovine
Copy link

Summary:
Given a graph produced from a function like this:

def foo():
    li = [1, 2, 3, 4, 5, 6]
    return li[0:2]

This pass produces a graph like this:

def foo():
    li = [1, 2]
    return li

These changes are mostly adapted from #62297

Test Plan: buck test //caffe2/jit:test -- TestPeephole

Differential Revision: D30231044

@facebook-github-bot facebook-github-bot added oncall: jit Add this issue/PR to JIT oncall triage queue cla signed labels Aug 10, 2021
@facebook-github-bot
Copy link
Contributor

facebook-github-bot commented Aug 10, 2021

🔗 Helpful links

💊 CI failures summary and remediations

As of commit 56f5be7 (more details on the Dr. CI page):


💚 💚 Looks good so far! There are no failures yet. 💚 💚


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 to the (internal) Dr. CI Users group.

Click here to manually regenerate this comment.

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D30231044

1 similar comment
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D30231044

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D30231044

@codecov
Copy link

codecov bot commented Aug 17, 2021

Codecov Report

Merging #63049 (56f5be7) into master (ad47fb8) will decrease coverage by 0.00%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master   #63049      +/-   ##
==========================================
- Coverage   66.77%   66.76%   -0.01%     
==========================================
  Files         695      695              
  Lines       90761    90761              
==========================================
- Hits        60602    60598       -4     
- Misses      30159    30163       +4     

Summary:
Pull Request resolved: pytorch#63049

Given a graph produced from a function like this:
```
def foo():
    li = [1, 2, 3, 4, 5, 6]
    return li[0:2]
```
This pass produces a graph like this:
```
def foo():
    li = [1, 2]
    return li
```

These changes are mostly adapted from pytorch#62297

Test Plan: `buck test //caffe2/test:jit -- TestPeephole`

Reviewed By: eellison

Differential Revision: D30231044

fbshipit-source-id: 0de4f67f183a725fd5d4fda239299fb3449149db
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D30231044

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in babd449.

@facebook-github-bot
Copy link
Contributor

This pull request has been reverted by 65050ec.

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

Labels

cla signed fb-exported Merged oncall: jit Add this issue/PR to JIT oncall triage queue Reverted

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants