Skip to content

Commit e7fd150

Browse files
kirklandsignPyre Bot Jr.
and
Pyre Bot Jr.
authored
Add missing Pyre mode headers
Differential Revision: D69171928 Co-authored-by: Pyre Bot Jr. <[email protected]>
1 parent ab805ff commit e7fd150

23 files changed

+45
-0
lines changed

backends/arm/_passes/annotate_decomposed_matmul.py

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
# This source code is licensed under the BSD-style license found in the
55
# LICENSE file in the root directory of this source tree.
66

7+
# pyre-unsafe
8+
79
import itertools
810

911
from typing import List

backends/arm/_passes/fold_qdq_with_annotated_qparams_pass.py

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
# This source code is licensed under the BSD-style license found in the
55
# LICENSE file in the root directory of this source tree.
66

7+
# pyre-unsafe
8+
79
import copy
810

911
from typing import cast, Dict, Set, Tuple

backends/arm/_passes/fuse_batchnorm2d_pass.py

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# This source code is licensed under the BSD-style license found in the
44
# LICENSE file in the root directory of this source tree.
55

6+
# pyre-unsafe
7+
68
import torch
79
from executorch.exir import ExportedProgram
810
from executorch.exir.dialects._ops import ops as exir_ops

backends/arm/_passes/fuse_quantized_activation_pass.py

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# This source code is licensed under the BSD-style license found in the
44
# LICENSE file in the root directory of this source tree.
55

6+
# pyre-unsafe
7+
68
import torch
79
from executorch.backends.arm.tosa_quant_utils import q_op
810
from executorch.exir.dialects._ops import ops as exir_ops

backends/arm/_passes/insert_table_ops.py

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
# This source code is licensed under the BSD-style license found in the
55
# LICENSE file in the root directory of this source tree.
66

7+
# pyre-unsafe
8+
79
from typing import Callable, Dict
810

911
import torch

backends/arm/_passes/mm_to_bmm_pass.py

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
# This source code is licensed under the BSD-style license found in the
55
# LICENSE file in the root directory of this source tree.
66

7+
# pyre-unsafe
8+
79
import torch
810
from executorch.backends.arm._passes.arm_pass_utils import (
911
create_node,

backends/arm/operator_support/right_shift_support.py

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# This source code is licensed under the BSD-style license found in the
44
# LICENSE file in the root directory of this source tree.
55

6+
# pyre-unsafe
7+
68

79
import logging
810

backends/arm/operators/op_clamp.py

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
# This source code is licensed under the BSD-style license found in the
55
# LICENSE file in the root directory of this source tree
66

7+
# pyre-unsafe
8+
79
from typing import Any, List, Tuple
810

911
import serializer.tosa_serializer as ts # type: ignore

backends/arm/operators/op_rshift.py

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
# This source code is licensed under the BSD-style license found in the
55
# LICENSE file in the root directory of this source tree.
66

7+
# pyre-unsafe
8+
79
from typing import List
810

911
import serializer.tosa_serializer as ts # type: ignore

backends/arm/util/arm_model_evaluator.py

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
# This source code is licensed under the BSD-style license found in the
55
# LICENSE file in the root directory of this source tree.
66

7+
# pyre-unsafe
8+
79
import logging
810
import os
911
import random

backends/cadence/aot/fuse_ops.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary.
22

3+
# pyre-unsafe
4+
35

46
# This file contains all the functions that fuse ops in the fx graph.
57

backends/cadence/aot/tests/test_fusion_ops_passes.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary.
22

3+
# pyre-unsafe
4+
35

46
import unittest
57

backends/cadence/aot/tests/test_memory_passes.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary.
22

3+
# pyre-unsafe
4+
35
import logging
46
import math
57
import unittest

backends/cadence/aot/tests/test_remove_ops_passes.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary.
22

3+
# pyre-unsafe
4+
35

46
import unittest
57
from typing import cast, Tuple

backends/cadence/aot/tests/test_reorder_ops_passes.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary.
22

3+
# pyre-unsafe
4+
35

46
import unittest
57

backends/cadence/aot/tests/test_replace_ops_passes.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary.
22

3+
# pyre-unsafe
4+
35
import unittest
46
from typing import Any, Callable, cast, List, Optional, Sequence, Tuple, Union
57

backends/cadence/aot/tests/test_simplify_ops_passes.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary.
22

3+
# pyre-unsafe
4+
35

46
import unittest
57
from typing import cast, Optional, Tuple

backends/cadence/runtime/runtime.py

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
# This source code is licensed under the BSD-style license found in the
55
# LICENSE file in the root directory of this source tree.
66

7+
# pyre-unsafe
8+
79

810
import logging
911
import numbers

backends/cadence/runtime/utils.py

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
# This source code is licensed under the BSD-style license found in the
55
# LICENSE file in the root directory of this source tree.
66

7+
# pyre-unsafe
8+
79

810
import logging
911
import typing

examples/cadence/operators/test_add_op.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary.
22

3+
# pyre-unsafe
4+
35
import unittest
46
from typing import Tuple
57

examples/cadence/operators/test_g3_ops.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# pyre-unsafe
12
import unittest
23
from typing import Any, cast, List, OrderedDict, Tuple
34

examples/cadence/operators/test_quantized_conv1d_op.py

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
# This source code is licensed under the BSD-style license found in the
55
# LICENSE file in the root directory of this source tree.
66

7+
# pyre-unsafe
8+
79
# Example script for exporting simple models to flatbuffer
810

911
import logging

examples/cadence/operators/test_quantized_linear_op.py

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
# This source code is licensed under the BSD-style license found in the
55
# LICENSE file in the root directory of this source tree.
66

7+
# pyre-unsafe
8+
79
# Example script for exporting simple models to flatbuffer
810

911
import logging

0 commit comments

Comments
 (0)