Skip to content

Conversation

Sebastian-Larsson
Copy link
Collaborator

@Sebastian-Larsson Sebastian-Larsson commented Aug 4, 2025

The following functions are only used in quantization_annotator and can therefore be moved from arm_quantizer_utils.py to
quantization_annotator.py:

* is_large_scalar
* is_non_float_tensor
* get_node_target

Additionally, is_ok_for_quantization is removed. It combined the is_large_scalar and is_non_float_tensor checks into one, which is now done directly where is_ok_for_quantization was used.

cc @digantdesai @freddan80 @per @zingo @oscarandersson8218

The following functions are only used in quantization_annotator and can
therefore be moved from arm_quantizer_utils.py to
quantization_annotator.py:

    * is_large_scalar
    * is_non_float_tensor
    * get_node_target

Additionally, is_ok_for_quantization is removed. It combined the
is_large_scalar and is_non_float_tensor checks into one, which is now
done directly where is_ok_for_quantization was used.

Change-Id: I3d8a974bfca0e59c0a22e52be16e36a8039c8029
Signed-off-by: Sebastian Larsson <sebastian.larsson@arm.com>
@Sebastian-Larsson Sebastian-Larsson added the partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm label Aug 4, 2025
@Sebastian-Larsson Sebastian-Larsson added ciflow/trunk release notes: none Do not include this in the release notes labels Aug 4, 2025
Copy link

pytorch-bot bot commented Aug 4, 2025

🔗 Helpful Links

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

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

❌ 4 New Failures, 1 Unrelated Failure

As of commit 4a35dd9 with merge base 8d0053c (image):

NEW FAILURES - The following jobs have failed:

BROKEN TRUNK - The following job 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.

@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 Aug 4, 2025
@Sebastian-Larsson
Copy link
Collaborator Author

CI failures are unrelated

@oscarandersson8218 oscarandersson8218 merged commit a89b963 into pytorch:main Aug 5, 2025
222 of 227 checks passed
agrima1304 pushed a commit to agrima1304/executorch that referenced this pull request Aug 26, 2025
)

The following functions are only used in quantization_annotator and can
therefore be moved from arm_quantizer_utils.py to
quantization_annotator.py:

    * is_large_scalar
    * is_non_float_tensor
    * get_node_target

Additionally, is_ok_for_quantization is removed. It combined the
is_large_scalar and is_non_float_tensor checks into one, which is now
done directly where is_ok_for_quantization was used.


cc @digantdesai @freddan80 @per @zingo @oscarandersson8218

Signed-off-by: Sebastian Larsson <sebastian.larsson@arm.com>
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. partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm release notes: none Do not include this in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants