Skip to content

Arm backend: Avoid tensor copy warning in quant config#20687

Merged
Sebastian-Larsson merged 1 commit into
pytorch:mainfrom
Sebastian-Larsson:avoid_tensor_copy_warning
Jul 2, 2026
Merged

Arm backend: Avoid tensor copy warning in quant config#20687
Sebastian-Larsson merged 1 commit into
pytorch:mainfrom
Sebastian-Larsson:avoid_tensor_copy_warning

Conversation

@Sebastian-Larsson

@Sebastian-Larsson Sebastian-Larsson commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

The scale product is already a tensor, so wrapping it with torch.tensor emits a PyTorch copy-construction warning. Use it directly and cast it to float32 instead.

cc @digantdesai @freddan80 @per @zingo @oscarandersson8218 @mansnils @robell @rascani

The scale product is already a tensor, so wrapping it with torch.tensor
emits a PyTorch copy-construction warning. Use it directly and cast it
to float32 instead.

Change-Id: I8a19737785a481f30f6eacc9340ebfa07eab962c
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 Jul 2, 2026
@Sebastian-Larsson Sebastian-Larsson added the release notes: arm Changes to the ARM backend delegate label Jul 2, 2026
@pytorch-bot

pytorch-bot Bot commented Jul 2, 2026

Copy link
Copy Markdown

🔗 Helpful Links

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

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

✅ No Failures

As of commit 3146837 with merge base a31f8b9 (image):
💚 Looks good so far! There are no failures yet. 💚

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 Jul 2, 2026
@github-actions github-actions Bot added ciflow/trunk module: arm Issues related to arm backend labels Jul 2, 2026
@Sebastian-Larsson Sebastian-Larsson merged commit 5bce981 into pytorch:main Jul 2, 2026
505 of 509 checks passed
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. module: arm Issues related to arm backend partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm release notes: arm Changes to the ARM backend delegate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants