-
Notifications
You must be signed in to change notification settings - Fork 685
Rescale sub int16 correctly #14650
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
Rescale sub int16 correctly #14650
Conversation
🔗 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 FailureAs of commit 919c918 with merge base 41379fb ( NEW FAILURE - The following job has failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
@pytorchbot label "release notes: none" |
There was a problem hiding this 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)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
update this?
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
822b630
to
69ae265
Compare
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 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
69ae265
to
919c918
Compare
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