Skip to content

Drop aten.transpose.Dimname from arm quantizer op list#20074

Open
ashutoshsameer wants to merge 2 commits into
pytorch:mainfrom
ashutoshsameer:export-D107675466
Open

Drop aten.transpose.Dimname from arm quantizer op list#20074
ashutoshsameer wants to merge 2 commits into
pytorch:mainfrom
ashutoshsameer:export-D107675466

Conversation

@ashutoshsameer
Copy link
Copy Markdown

@ashutoshsameer ashutoshsameer commented Jun 5, 2026

Summary:
PyTorch removed named tensor support in D-equivalent of pytorch/pytorch#173895 ("Remove named tensor", commit 05c965e7f8a7), which deleted all Dimname-based op overloads from native_functions.yaml, including aten::transpose.Dimname. Builds picked up after that change no longer register the Dimname overload.

executorch/backends/arm/quantizer/quantization_annotator.py references torch.ops.aten.transpose.Dimname in a module-level constant list. As soon as that module is imported, evaluating the constant triggers OpOverloadPacket.__getattr__('Dimname') in caffe2/torch/_ops.py, which raises:

AttributeError: The underlying op of 'aten.transpose' has no overload name 'Dimname'

This breaks the PTQ step of the EMG release Ceres2 CC pipeline (FBLearner Flow run f1093420800) and any other workflow that imports the arm quantizer.

Fix: drop the transpose.Dimname entry. The same list already contains transpose.int, which is the only transpose overload still registered after the named-tensor removal. No other .Dimname references remain anywhere under fbcode/executorch/.

Differential Revision: D107675466

cc @digantdesai @freddan80 @per @zingo @oscarandersson8218 @mansnils @Sebastian-Larsson @robell @rascani

Summary:
PyTorch removed named tensor support in D-equivalent of pytorch/pytorch#173895 ("Remove named tensor", commit 05c965e7f8a7), which deleted all `Dimname`-based op overloads from `native_functions.yaml`, including `aten::transpose.Dimname`. Builds picked up after that change no longer register the `Dimname` overload.

`executorch/backends/arm/quantizer/quantization_annotator.py` references `torch.ops.aten.transpose.Dimname` in a module-level constant list. As soon as that module is imported, evaluating the constant triggers `OpOverloadPacket.__getattr__('Dimname')` in `caffe2/torch/_ops.py`, which raises:

```
AttributeError: The underlying op of 'aten.transpose' has no overload name 'Dimname'
```

This breaks the PTQ step of the EMG release Ceres2 CC pipeline (FBLearner Flow run f1093420800) and any other workflow that imports the arm quantizer.

Fix: drop the `transpose.Dimname` entry. The same list already contains `transpose.int`, which is the only `transpose` overload still registered after the named-tensor removal. No other `.Dimname` references remain anywhere under `fbcode/executorch/`.

Differential Revision: D107675466
@pytorch-bot
Copy link
Copy Markdown

pytorch-bot Bot commented Jun 5, 2026

🔗 Helpful Links

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

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

❌ 2 New Failures, 1 Cancelled Job

As of commit 40d41e3 with merge base 502fdbe (image):

NEW FAILURES - The following jobs have failed:

CANCELLED JOB - The following job was cancelled. Please retry:

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

@linux-foundation-easycla
Copy link
Copy Markdown

linux-foundation-easycla Bot commented Jun 5, 2026

CLA Not Signed

@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 Jun 5, 2026
@github-actions github-actions Bot added ciflow/trunk module: arm Issues related to arm backend labels Jun 5, 2026
@pytorch-bot
Copy link
Copy Markdown

pytorch-bot Bot commented Jun 5, 2026

Workflows were awaiting approval. CI has now been triggered for the ciflow labels on this PR.

@meta-codesync
Copy link
Copy Markdown
Contributor

meta-codesync Bot commented Jun 5, 2026

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

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 5, 2026

This PR needs a release notes: label

If your change should be included in the release notes (i.e. would users of this library care about this change?), please use a label starting with release notes:. This helps us keep track and include your important work in the next release notes.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "release notes: none"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

Copy link
Copy Markdown
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.

Copy link
Copy Markdown
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.

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. meta-exported module: arm Issues related to arm backend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants