Skip to content

Commit 6f873c4

Browse files
committed
Remove casting of a list on node.args & add torch.ops.aten.full.default
back to is_share_obs_or_fq_op
1 parent 5816b94 commit 6f873c4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

backends/arm/quantizer/arm_quantizer_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ def is_share_obs_or_fq_op(op: Callable) -> bool:
147147
# TODO: remove?
148148
torch.ops.aten.adaptive_avg_pool2d.default,
149149
torch.ops.aten.avg_pool2d.default,
150+
torch.ops.aten.full.default,
150151
torch.ops.aten.flatten.using_ints,
151152
torch.ops.aten.dropout.default,
152153
operator.getitem,

backends/arm/quantizer/quantization_annotation/generic_annotator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# LICENSE file in the root directory of this source tree.
55

66
# pyre-unsafe
7-
from typing import Callable, cast, List, Optional
7+
from typing import Callable, List, Optional
88

99
import torch
1010
import torch.fx
@@ -70,7 +70,7 @@ def _annotate_generic(
7070
if arm_quantizer_utils.is_annotated(node):
7171
continue
7272

73-
input_acts = cast(list[torch.fx.Node], node.args[0])
73+
input_acts = node.args[0]
7474

7575
# Check to see if there are multiple inputs.
7676
# this allows for stack/cat ops to be annotated

0 commit comments

Comments
 (0)