Skip to content

Conversation

3l1
Copy link
Contributor

@3l1 3l1 commented Sep 28, 2025

Summary:
we rescale to int32 using a different common scale(2*max(left scale,right scale))

the rescale(s) -> sub[int32] -> rescale from TOSA is converted to a single sub command stream instruction by Vela/Regor

Differential Revision: D83437623

@3l1 3l1 requested a review from digantdesai as a code owner September 28, 2025 18:45
Copy link

pytorch-bot bot commented Sep 28, 2025

🔗 Helpful Links

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

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

❌ 1 New Failure

As of commit 919c918 with merge base 41379fb (image):

NEW FAILURE - The following job has failed:

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

@meta-cla meta-cla 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 Sep 28, 2025
@facebook-github-bot
Copy link
Contributor

@3l1 has exported this pull request. If you are a Meta employee, you can view the originating diff in D83437623.

@3l1
Copy link
Contributor Author

3l1 commented Sep 28, 2025

@pytorchbot label "release notes: none"

@pytorch-bot pytorch-bot bot added the release notes: none Do not include this in the release notes label Sep 28, 2025
Copy link
Contributor

@digantdesai digantdesai left a comment

Choose a reason for hiding this comment

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

Review automatically exported from Phabricator review in Meta.

def insert_rescale_ops_int16_to_int32_maxscale(
tosa_graph: Any, inputs: list[TosaArg], node: Node, tosa_spec=None
) -> tuple[list[Any], float]:
"""For ADD and SUB with int16 inputs, we rescale to int32 using a different common scale(2*max(left scale,right scale))
Copy link
Contributor

Choose a reason for hiding this comment

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

update this?

@3l1 3l1 requested review from gggekov and per September 29, 2025 15:50
facebook-github-bot pushed a commit that referenced this pull request Sep 29, 2025
Summary:



we rescale to int32 using a different common scale(2*max(left scale,right scale))

the rescale(s) -> sub[int32] -> rescale from TOSA is converted to a single sub command stream instruction by Vela/Regor

Reviewed By: digantdesai

Differential Revision: D83437623
3l1 added a commit that referenced this pull request Sep 29, 2025
Summary:



we rescale to int32 using a different common scale(2*max(left scale,right scale))

the rescale(s) -> sub[int32] -> rescale from TOSA is converted to a single sub command stream instruction by Vela/Regor

Reviewed By: digantdesai

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

@3l1 has exported this pull request. If you are a Meta employee, you can view the originating diff in D83437623.

facebook-github-bot pushed a commit that referenced this pull request Sep 29, 2025
Summary:



we rescale to int32 using a different common scale(2*max(left scale,right scale))

the rescale(s) -> sub[int32] -> rescale from TOSA is converted to a single sub command stream instruction by Vela/Regor

Reviewed By: digantdesai

Differential Revision: D83437623
Summary:



we rescale to int32 using a different common scale(2*max(left scale,right scale))

the rescale(s) -> sub[int32] -> rescale from TOSA is converted to a single sub command stream instruction by Vela/Regor


bypass-github-export-checks
bypass-github-pytorch-ci-checks
bypass-github-executorch-ci-checks

Reviewed By: digantdesai

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

@3l1 has exported this pull request. If you are a Meta employee, you can view the originating Diff in D83437623.

@facebook-github-bot facebook-github-bot merged commit aeed916 into main Sep 30, 2025
131 of 132 checks passed
@facebook-github-bot facebook-github-bot deleted the export-D83437623 branch September 30, 2025 21:55
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 meta-exported release notes: none Do not include this in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants