Skip to content

Commit

Permalink
Reapply pyre-ignores after lintrunner moves
Browse files Browse the repository at this point in the history
lintrunner moved the pyre-ignores to the wrong line, re-apply to the
right line again.

Signed-off-by: Per Åstrand <[email protected]>
Change-Id: Icbb6cf6f2d65d6fe1c00e7c4a738691ffeb7acb2
  • Loading branch information
per committed Dec 19, 2024
1 parent 0e8162c commit a8380d3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions backends/arm/operators/op_conv2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

import serializer.tosa_serializer as ts
import torch

# pyre-fixme[21]: 'Could not find a module corresponding to import `executorch.backends.arm._passes.fold_qdq_with_annotated_qparams_pass`.'
from executorch.backends.arm._passes.fold_qdq_with_annotated_qparams_pass import (
get_input_qparams,
get_output_qparams,
Expand Down
4 changes: 2 additions & 2 deletions backends/arm/operators/op_max.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ def define_node(
scale_back = 1.0
max_output = output
if inputs[0].dtype == ts.DType.INT8:
input_qparams = get_input_qparams(
input_qparams = get_input_qparams( # pyre-ignore[16]: 'Module `executorch.backends.arm` has no attribute `_passes`.'
node
) # pyre-ignore[16]: 'Module `executorch.backends.arm` has no attribute `_passes`.'
)
assert (
len(input_qparams) == 2
), f"Both inputs needs to have quantization information for {node}"
Expand Down
4 changes: 2 additions & 2 deletions backends/arm/operators/op_min.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ def define_node(
scale_back = 1.0
min_output = output
if inputs[0].dtype == ts.DType.INT8:
input_qparams = get_input_qparams(
input_qparams = get_input_qparams( # pyre-ignore[16]: 'Module `executorch.backends.arm` has no attribute `_passes`.'
node
) # pyre-ignore[16]: 'Module `executorch.backends.arm` has no attribute `_passes`.'
)
assert (
len(input_qparams) == 2
), f"Both inputs needs to have quantization information for {node}"
Expand Down
4 changes: 2 additions & 2 deletions backends/arm/process_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ def process_quantized_bias(
_,
) = consumer_node.all_input_nodes

input_qargs = get_input_qparams(
input_qargs = get_input_qparams( # pyre-ignore[16]: Module `executorch.backends.arm` has no attribute `_passes`.
consumer_node
) # pyre-ignore[16]: Module `executorch.backends.arm` has no attribute `_passes`.
)

input_node_scale = input_qargs[0].scale
weight_node_scale = input_qargs[1].scale
Expand Down

0 comments on commit a8380d3

Please sign in to comment.