Skip to content

Commit 3a2c777

Browse files
kirklandsignfacebook-github-bot
authored andcommitted
Remove non-existent aten.transpose.Dimname overload from quantizer
Summary: The Arm quantizer's `_one_to_one_shared_input_qspec` set references `torch.ops.aten.transpose.Dimname` at module load time. This named-tensor overload no longer exists in the currently pinned torch version, so simply importing `quantization_annotator.py` raises: AttributeError: The underlying op of 'aten.transpose' has no overload name 'Dimname' Because nearly every Arm test imports this module transitively (test_pipeline -> arm_tester -> quantizer -> quantization_annotator), the import error broke test listing/collection across the whole Arm backend test suite (e.g. fbcode//executorch/backends/arm/test:decompose_int_pow_pass failed at listing with 'collected 0 items / 1 error'). The `.Dimname` overload is for named tensors, which never appear in exported edge-dialect graphs, so it is never matched in practice. Removing the line is safe and restores all Arm tests. Differential Revision: D107688878
1 parent 5af1d7b commit 3a2c777

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

backends/arm/quantizer/quantization_annotator.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,6 @@ def _match_pattern(
547547
torch.ops.aten.split.Tensor,
548548
torch.ops.aten.split_with_sizes.default,
549549
torch.ops.aten.split_copy.Tensor,
550-
torch.ops.aten.transpose.Dimname,
551550
torch.ops.aten.transpose.int,
552551
torch.ops.aten.transpose_copy.int,
553552
torch.ops.aten.t_copy.default,

0 commit comments

Comments
 (0)