Skip to content

Commit e6a0d53

Browse files
Arm backend: Add mean.dim to CheckProperQuantization (pytorch#12127)
mean.dim decomposes into an avg_pool2d, which occurs after quantization annotation. This led to the avg_pool2d node not having quantization parameters for the output. mean.dim is added to CheckProperQuantization so that if the decomposition occurs the avg_pool2d operator will not be delegated. Signed-off-by: Sebastian Larsson <[email protected]>
1 parent bed504e commit e6a0d53

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

backends/arm/operator_support/tosa_supported_operators.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,7 @@ class CheckProperQuantization(OperatorSupportBase):
327327
exir_ops.edge.aten.upsample_bilinear2d.vec,
328328
exir_ops.edge.aten.upsample_nearest2d.vec,
329329
torch.ops.aten.scalar_tensor.default,
330+
exir_ops.edge.aten.mean.dim,
330331
*TableOps.included_ops(),
331332
)
332333

0 commit comments

Comments
 (0)