Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@metascroy
Copy link
Contributor

Summary:
When introducing bias, we made has_weight_zeros a regular argument instead of a template arg.

I've noticed this has decreased perf, so we re-introduce has_weight_zeros as a template arg. I keep has_bias and has_clamp as regular args because they are only applied in the outer most loop, and we want to reduce code bloat.

Note that all of this happens during internal dispatch, and the user-level python op has no change in API.

Reviewed By: drisspg

Differential Revision: D71503133

@pytorch-bot
Copy link

pytorch-bot bot commented Apr 1, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/ao/1991

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

❌ 3 New Failures, 3 Pending

As of commit 6a0489c with merge base 70fc520 (image):

NEW FAILURES - The following jobs have failed:

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 Apr 1, 2025
@facebook-github-bot
Copy link
Contributor

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

Summary:
Pull Request resolved: pytorch#1991

When introducing bias, we made has_weight_zeros a regular argument instead of a template arg.

I've noticed this has decreased perf, so we re-introduce has_weight_zeros as a template arg.  I keep has_bias and has_clamp as regular args because they are only applied in the outer most loop, and we want to reduce code bloat.

Note that all of this happens during internal dispatch, and the user-level python op has no change in API.

Reviewed By: drisspg

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

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

@facebook-github-bot facebook-github-bot merged commit 5e4d50c into pytorch:main Apr 1, 2025
18 of 20 checks passed
jainapurva pushed a commit that referenced this pull request Apr 8, 2025
Differential Revision: D71503133

Pull Request resolved: #1991
liangel-02 pushed a commit that referenced this pull request Aug 25, 2025
Differential Revision: D71503133

Pull Request resolved: #1991
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants