KEMBAR78
Move XNNPACKQuantizer from PyTorch to ExecuTorch by digantdesai · Pull Request #7804 · pytorch/executorch · GitHub
Skip to content

Conversation

@digantdesai
Copy link
Contributor

Summary:
X-link: pytorch/pytorch#144940

This migrates XNNPACKQuantizer from PyTorch to ExecuTorch.

Rationale:
Main motivation is to avoid pytorch pin update in OSS after updating XNNPACKQuantizer, which can be rather frequent.

Other impact and considerations:

  • PT2e flow (which lives in PyTorch) relies havily on XNNPACKQuantizer for a "example" implementation for quantizer and more importantly tests. Fow now, we will keep the torch.ao.quantization.xnnpack_quantizer as is but mark is as not BC, and deprecated to discourace future new dependencies on it.

  • Other OSS repository using XNNPACKQuantizer from PyTorch now have to take an additional dependency on ExecuTorch.

Differential Revision: D68191752

@pytorch-bot
Copy link

pytorch-bot bot commented Jan 21, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/7804

Note: Links to docs will display an error until the docs builds have been completed.

❌ 2 Cancelled Jobs, 3 Unrelated Failures

As of commit 67d64fe with merge base 7600f18 (image):

CANCELLED JOBS - The following jobs were cancelled. Please retry:

BROKEN TRUNK - The following jobs failed but were present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jan 21, 2025
@facebook-github-bot
Copy link
Contributor

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

@digantdesai digantdesai added release notes: xnnpack Changes to the XNNPack backend delegate ciflow/trunk labels Jan 21, 2025
digantdesai added a commit to digantdesai/pytorch that referenced this pull request Jan 21, 2025
Summary:
X-link: pytorch/executorch#7804

Pull Request resolved: pytorch#144940

This migrates XNNPACKQuantizer from PyTorch to ExecuTorch.

Rationale:
Main motivation is to avoid pytorch pin update in OSS after updating XNNPACKQuantizer, which can be rather frequent.

Other impact and considerations:
- PT2e flow (which lives in PyTorch) relies havily on XNNPACKQuantizer for a "example" implementation for quantizer and more importantly tests. Fow now, we will keep the torch.ao.quantization.xnnpack_quantizer as is but mark is as not BC, and deprecated to discourace future new dependencies on it.

- Other OSS repository using XNNPACKQuantizer from PyTorch now have to take an additional dependency on ExecuTorch.

Test Plan: CI

Differential Revision: D68191752
digantdesai added a commit to digantdesai/executorch-1 that referenced this pull request Jan 22, 2025
Summary:
Pull Request resolved: pytorch#7804

X-link: pytorch/pytorch#144940

This migrates XNNPACKQuantizer from PyTorch to ExecuTorch.

Rationale:
Main motivation is to avoid pytorch pin update in OSS after updating XNNPACKQuantizer, which can be rather frequent.

Other impact and considerations:
- PT2e flow (which lives in PyTorch) relies havily on XNNPACKQuantizer for a "example" implementation for quantizer and more importantly tests. Fow now, we will keep the torch.ao.quantization.xnnpack_quantizer as is but mark is as not BC, and deprecated to discourace future new dependencies on it.

- Other OSS repository using XNNPACKQuantizer from PyTorch now have to take an additional dependency on ExecuTorch.

Reviewed By: mcr229

Differential Revision: D68191752
@facebook-github-bot
Copy link
Contributor

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

digantdesai added a commit to digantdesai/executorch-1 that referenced this pull request Jan 22, 2025
Summary:
Pull Request resolved: pytorch#7804

X-link: pytorch/pytorch#144940

This migrates XNNPACKQuantizer from PyTorch to ExecuTorch.

Rationale:
Main motivation is to avoid pytorch pin update in OSS after updating XNNPACKQuantizer, which can be rather frequent.

Other impact and considerations:
- PT2e flow (which lives in PyTorch) relies havily on XNNPACKQuantizer for a "example" implementation for quantizer and more importantly tests. Fow now, we will keep the torch.ao.quantization.xnnpack_quantizer as is but mark is as not BC, and deprecated to discourace future new dependencies on it.

- Other OSS repository using XNNPACKQuantizer from PyTorch now have to take an additional dependency on ExecuTorch.

Reviewed By: mcr229

Differential Revision: D68191752
@facebook-github-bot
Copy link
Contributor

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

digantdesai added a commit to digantdesai/executorch-1 that referenced this pull request Jan 22, 2025
Summary:
Pull Request resolved: pytorch#7804

X-link: pytorch/pytorch#144940

This migrates XNNPACKQuantizer from PyTorch to ExecuTorch.

Rationale:
Main motivation is to avoid pytorch pin update in OSS after updating XNNPACKQuantizer, which can be rather frequent.

Other impact and considerations:
- PT2e flow (which lives in PyTorch) relies havily on XNNPACKQuantizer for a "example" implementation for quantizer and more importantly tests. Fow now, we will keep the torch.ao.quantization.xnnpack_quantizer as is but mark is as not BC, and deprecated to discourace future new dependencies on it.

- Other OSS repository using XNNPACKQuantizer from PyTorch now have to take an additional dependency on ExecuTorch.

Reviewed By: mcr229

Differential Revision: D68191752
@facebook-github-bot
Copy link
Contributor

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

digantdesai added a commit to digantdesai/executorch-1 that referenced this pull request Jan 22, 2025
Summary:
Pull Request resolved: pytorch#7804

X-link: pytorch/pytorch#144940

This migrates XNNPACKQuantizer from PyTorch to ExecuTorch.

Rationale:
Main motivation is to avoid pytorch pin update in OSS after updating XNNPACKQuantizer, which can be rather frequent.

Other impact and considerations:
- PT2e flow (which lives in PyTorch) relies havily on XNNPACKQuantizer for a "example" implementation for quantizer and more importantly tests. Fow now, we will keep the torch.ao.quantization.xnnpack_quantizer as is but mark is as not BC, and deprecated to discourace future new dependencies on it.

- Other OSS repository using XNNPACKQuantizer from PyTorch now have to take an additional dependency on ExecuTorch.

Reviewed By: mcr229

Differential Revision: D68191752
@facebook-github-bot
Copy link
Contributor

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

digantdesai added a commit to digantdesai/pytorch that referenced this pull request Jan 22, 2025
Summary:
X-link: pytorch/executorch#7804

Pull Request resolved: pytorch#144940

This migrates XNNPACKQuantizer from PyTorch to ExecuTorch.

Rationale:
Main motivation is to avoid pytorch pin update in OSS after updating XNNPACKQuantizer, which can be rather frequent.

Other impact and considerations:
- PT2e flow (which lives in PyTorch) relies havily on XNNPACKQuantizer for a "example" implementation for quantizer and more importantly tests. Fow now, we will keep the torch.ao.quantization.xnnpack_quantizer as is but mark is as not BC, and deprecated to discourace future new dependencies on it.

- Other OSS repository using XNNPACKQuantizer from PyTorch now have to take an additional dependency on ExecuTorch.

Test Plan: CI

Reviewed By: mcr229

Differential Revision: D68191752
digantdesai added a commit to digantdesai/executorch-1 that referenced this pull request Jan 23, 2025
Summary:
Pull Request resolved: pytorch#7804

X-link: pytorch/pytorch#144940

This migrates XNNPACKQuantizer from PyTorch to ExecuTorch.

Rationale:
Main motivation is to avoid pytorch pin update in OSS after updating XNNPACKQuantizer, which can be rather frequent.

Other impact and considerations:
- PT2e flow (which lives in PyTorch) relies havily on XNNPACKQuantizer for a "example" implementation for quantizer and more importantly tests. Fow now, we will keep the torch.ao.quantization.xnnpack_quantizer as is but mark is as not BC, and deprecated to discourace future new dependencies on it.

- Other OSS repository using XNNPACKQuantizer from PyTorch now have to take an additional dependency on ExecuTorch.

Reviewed By: mcr229

Differential Revision: D68191752
@facebook-github-bot
Copy link
Contributor

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

digantdesai added a commit to digantdesai/pytorch that referenced this pull request Jan 23, 2025
Summary:
X-link: pytorch/executorch#7804

Pull Request resolved: pytorch#144940

This migrates XNNPACKQuantizer from PyTorch to ExecuTorch.

Rationale:
Main motivation is to avoid pytorch pin update in OSS after updating XNNPACKQuantizer, which can be rather frequent.

Other impact and considerations:
- PT2e flow (which lives in PyTorch) relies havily on XNNPACKQuantizer for a "example" implementation for quantizer and more importantly tests. Fow now, we will keep the torch.ao.quantization.xnnpack_quantizer as is but mark is as not BC, and deprecated to discourace future new dependencies on it.

- Other OSS repository using XNNPACKQuantizer from PyTorch now have to take an additional dependency on ExecuTorch.

Test Plan: CI

Reviewed By: mcr229

Differential Revision: D68191752
digantdesai added a commit to digantdesai/executorch-1 that referenced this pull request Jan 23, 2025
Summary:
Pull Request resolved: pytorch#7804

X-link: pytorch/pytorch#144940

This migrates XNNPACKQuantizer from PyTorch to ExecuTorch.

Rationale:
Main motivation is to avoid pytorch pin update in OSS after updating XNNPACKQuantizer, which can be rather frequent.

Other impact and considerations:
- PT2e flow (which lives in PyTorch) relies havily on XNNPACKQuantizer for a "example" implementation for quantizer and more importantly tests. Fow now, we will keep the torch.ao.quantization.xnnpack_quantizer as is but mark is as not BC, and deprecated to discourace future new dependencies on it.

- Other OSS repository using XNNPACKQuantizer from PyTorch now have to take an additional dependency on ExecuTorch.

Reviewed By: mcr229

Differential Revision: D68191752
digantdesai added a commit to digantdesai/executorch-1 that referenced this pull request Jan 23, 2025
Summary:
Pull Request resolved: pytorch#7804

X-link: pytorch/pytorch#144940

This migrates XNNPACKQuantizer from PyTorch to ExecuTorch.

Rationale:
Main motivation is to avoid pytorch pin update in OSS after updating XNNPACKQuantizer, which can be rather frequent.

Other impact and considerations:
- PT2e flow (which lives in PyTorch) relies havily on XNNPACKQuantizer for a "example" implementation for quantizer and more importantly tests. Fow now, we will keep the torch.ao.quantization.xnnpack_quantizer as is but mark is as not BC, and deprecated to discourace future new dependencies on it.

- Other OSS repository using XNNPACKQuantizer from PyTorch now have to take an additional dependency on ExecuTorch.

Reviewed By: mcr229

Differential Revision: D68191752
@facebook-github-bot
Copy link
Contributor

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

digantdesai added a commit to digantdesai/executorch-1 that referenced this pull request Jan 23, 2025
Summary:
Pull Request resolved: pytorch#7804

X-link: pytorch/pytorch#144940

This migrates XNNPACKQuantizer from PyTorch to ExecuTorch.

Rationale:
Main motivation is to avoid pytorch pin update in OSS after updating XNNPACKQuantizer, which can be rather frequent.

Other impact and considerations:
- PT2e flow (which lives in PyTorch) relies havily on XNNPACKQuantizer for a "example" implementation for quantizer and more importantly tests. Fow now, we will keep the torch.ao.quantization.xnnpack_quantizer as is but mark is as not BC, and deprecated to discourace future new dependencies on it.

- Other OSS repository using XNNPACKQuantizer from PyTorch now have to take an additional dependency on ExecuTorch.

Reviewed By: mcr229

Differential Revision: D68191752
@facebook-github-bot
Copy link
Contributor

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

digantdesai added a commit to digantdesai/executorch-1 that referenced this pull request Jan 23, 2025
Summary:
Pull Request resolved: pytorch#7804

X-link: pytorch/pytorch#144940

This migrates XNNPACKQuantizer from PyTorch to ExecuTorch.

Rationale:
Main motivation is to avoid pytorch pin update in OSS after updating XNNPACKQuantizer, which can be rather frequent.

Other impact and considerations:
- PT2e flow (which lives in PyTorch) relies havily on XNNPACKQuantizer for a "example" implementation for quantizer and more importantly tests. Fow now, we will keep the torch.ao.quantization.xnnpack_quantizer as is but mark is as not BC, and deprecated to discourace future new dependencies on it.

- Other OSS repository using XNNPACKQuantizer from PyTorch now have to take an additional dependency on ExecuTorch.

Reviewed By: mcr229

Differential Revision: D68191752
@facebook-github-bot
Copy link
Contributor

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

digantdesai added a commit to digantdesai/executorch-1 that referenced this pull request Jan 23, 2025
Summary:
Pull Request resolved: pytorch#7804

X-link: pytorch/pytorch#144940

This migrates XNNPACKQuantizer from PyTorch to ExecuTorch.

Rationale:
Main motivation is to avoid pytorch pin update in OSS after updating XNNPACKQuantizer, which can be rather frequent.

Other impact and considerations:
- PT2e flow (which lives in PyTorch) relies havily on XNNPACKQuantizer for a "example" implementation for quantizer and more importantly tests. Fow now, we will keep the torch.ao.quantization.xnnpack_quantizer as is but mark is as not BC, and deprecated to discourace future new dependencies on it.

- Other OSS repository using XNNPACKQuantizer from PyTorch now have to take an additional dependency on ExecuTorch.

Reviewed By: mcr229

Differential Revision: D68191752
@facebook-github-bot
Copy link
Contributor

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

digantdesai added a commit to digantdesai/executorch-1 that referenced this pull request Jan 23, 2025
Summary:
Pull Request resolved: pytorch#7804

X-link: pytorch/pytorch#144940

This migrates XNNPACKQuantizer from PyTorch to ExecuTorch.

Rationale:
Main motivation is to avoid pytorch pin update in OSS after updating XNNPACKQuantizer, which can be rather frequent.

Other impact and considerations:
- PT2e flow (which lives in PyTorch) relies havily on XNNPACKQuantizer for a "example" implementation for quantizer and more importantly tests. Fow now, we will keep the torch.ao.quantization.xnnpack_quantizer as is but mark is as not BC, and deprecated to discourace future new dependencies on it.

- Other OSS repository using XNNPACKQuantizer from PyTorch now have to take an additional dependency on ExecuTorch.

Reviewed By: mcr229

Differential Revision: D68191752
@facebook-github-bot
Copy link
Contributor

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

digantdesai added a commit to digantdesai/executorch-1 that referenced this pull request Jan 23, 2025
Summary:
Pull Request resolved: pytorch#7804

X-link: pytorch/pytorch#144940

This migrates XNNPACKQuantizer from PyTorch to ExecuTorch.

Rationale:
Main motivation is to avoid pytorch pin update in OSS after updating XNNPACKQuantizer, which can be rather frequent.

Other impact and considerations:
- PT2e flow (which lives in PyTorch) relies havily on XNNPACKQuantizer for a "example" implementation for quantizer and more importantly tests. Fow now, we will keep the torch.ao.quantization.xnnpack_quantizer as is but mark is as not BC, and deprecated to discourace future new dependencies on it.

- Other OSS repository using XNNPACKQuantizer from PyTorch now have to take an additional dependency on ExecuTorch.

Reviewed By: mcr229

Differential Revision: D68191752
digantdesai added a commit to digantdesai/pytorch that referenced this pull request Jan 23, 2025
Summary:
X-link: pytorch/executorch#7804

Pull Request resolved: pytorch#144940

This migrates XNNPACKQuantizer from PyTorch to ExecuTorch.

Rationale:
Main motivation is to avoid pytorch pin update in OSS after updating XNNPACKQuantizer, which can be rather frequent.

Other impact and considerations:
- PT2e flow (which lives in PyTorch) relies havily on XNNPACKQuantizer for a "example" implementation for quantizer and more importantly tests. Fow now, we will keep the torch.ao.quantization.xnnpack_quantizer as is but mark is as not BC, and deprecated to discourace future new dependencies on it.

- Other OSS repository using XNNPACKQuantizer from PyTorch now have to take an additional dependency on ExecuTorch.

Test Plan: CI

Reviewed By: mcr229

Differential Revision: D68191752
Summary:
Pull Request resolved: pytorch#7804

X-link: pytorch/pytorch#144940

This migrates XNNPACKQuantizer from PyTorch to ExecuTorch.

Rationale:
Main motivation is to avoid pytorch pin update in OSS after updating XNNPACKQuantizer, which can be rather frequent.

Other impact and considerations:
- PT2e flow (which lives in PyTorch) relies havily on XNNPACKQuantizer for a "example" implementation for quantizer and more importantly tests. Fow now, we will keep the torch.ao.quantization.xnnpack_quantizer as is but mark is as not BC, and deprecated to discourace future new dependencies on it.

- Other OSS repository using XNNPACKQuantizer from PyTorch now have to take an additional dependency on ExecuTorch.

Reviewed By: mcr229

Differential Revision: D68191752
@facebook-github-bot
Copy link
Contributor

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

digantdesai added a commit to digantdesai/pytorch that referenced this pull request Jan 24, 2025
Summary:
X-link: pytorch/executorch#7804

Pull Request resolved: pytorch#144940

This migrates XNNPACKQuantizer from PyTorch to ExecuTorch.

Rationale:
Main motivation is to avoid pytorch pin update in OSS after updating XNNPACKQuantizer, which can be rather frequent.

Other impact and considerations:
- PT2e flow (which lives in PyTorch) relies havily on XNNPACKQuantizer for a "example" implementation for quantizer and more importantly tests. Fow now, we will keep the torch.ao.quantization.xnnpack_quantizer as is but mark is as not BC, and deprecated to discourace future new dependencies on it.

- Other OSS repository using XNNPACKQuantizer from PyTorch now have to take an additional dependency on ExecuTorch.

Test Plan: CI

Reviewed By: mcr229

Differential Revision: D68191752
@facebook-github-bot facebook-github-bot merged commit 90a2657 into pytorch:main Jan 24, 2025
102 of 110 checks passed
YIWENX14 pushed a commit that referenced this pull request Jan 28, 2025
Differential Revision: D68191752

Pull Request resolved: #7804
zonglinpeng pushed a commit to zonglinpeng/executorch that referenced this pull request Jan 30, 2025
Differential Revision: D68191752

Pull Request resolved: pytorch#7804
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported release notes: xnnpack Changes to the XNNPack backend delegate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants