Skip to content
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

Add pass to remove no-op dynamic slices #861

Closed

Conversation

ColinPeppler
Copy link
Contributor

@ColinPeppler ColinPeppler commented Jul 31, 2023

Summary:

This diff

We add a pass to remove no-op dynamic slices in remove_no_ops.py. We ignore any slices that are also marked as outputs. We simply check the input shape and output shape. We may be able to apply this to other operators, as well.

Differential Revision: D47838728

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported labels Jul 31, 2023
@facebook-github-bot
Copy link
Contributor

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

ColinPeppler added a commit to ColinPeppler/AITemplate that referenced this pull request Aug 1, 2023
Summary:
Pull Request resolved: facebookincubator#861

## This diff
We add a pass to remove no-op dynamic slices in remove_no_ops.py. We ignore any slices that are also marked as outputs. We simply check the input shape and output shape. We may be able to apply this to other operators, as well.

## Visualization
| Before Pass | After Pass
|---
| {F1060698386 height = 300} |  {F1060698388 height=250px}

 ---
## Notebooks
* prototype code: N3985444
* convert PyTorch model to AIT: N4004077

Reviewed By: muchulee8, chenyang78

Differential Revision: D47838728

fbshipit-source-id: 6478179c09b185fc61c201e687246169a52e9b9d
@facebook-github-bot
Copy link
Contributor

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

Summary:
Pull Request resolved: facebookincubator#861

## This diff
We add a pass to remove no-op dynamic slices in remove_no_ops.py. We ignore any slices that are also marked as outputs. We simply check the input shape and output shape. We may be able to apply this to other operators, as well.

## Visualization
| Before Pass | After Pass
|---
| {F1060698386 height = 300} |  {F1060698388 height=250px}

 ---
## Notebooks
* prototype code: N3985444
* convert PyTorch model to AIT: N4004077

Reviewed By: muchulee8, chenyang78

Differential Revision: D47838728

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

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 0f07929.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants