Skip to content

Add missing Pyre mode headers] [batch:12/1577] [shard:13/N] #8236

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions backends/arm/_passes/annotate_decomposed_matmul.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

import itertools

from typing import List
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

import copy

from typing import cast, Dict, Set, Tuple
Expand Down
2 changes: 2 additions & 0 deletions backends/arm/_passes/fuse_batchnorm2d_pass.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

import torch
from executorch.exir import ExportedProgram
from executorch.exir.dialects._ops import ops as exir_ops
Expand Down
2 changes: 2 additions & 0 deletions backends/arm/_passes/fuse_quantized_activation_pass.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

import torch
from executorch.backends.arm.tosa_quant_utils import q_op
from executorch.exir.dialects._ops import ops as exir_ops
Expand Down
2 changes: 2 additions & 0 deletions backends/arm/_passes/insert_table_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

from typing import Callable, Dict

import torch
Expand Down
2 changes: 2 additions & 0 deletions backends/arm/_passes/mm_to_bmm_pass.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

import torch
from executorch.backends.arm._passes.arm_pass_utils import (
create_node,
Expand Down
2 changes: 2 additions & 0 deletions backends/arm/operator_support/right_shift_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe


import logging

Expand Down
2 changes: 2 additions & 0 deletions backends/arm/operators/op_clamp.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree

# pyre-unsafe

from typing import Any, List, Tuple

import serializer.tosa_serializer as ts # type: ignore
Expand Down
2 changes: 2 additions & 0 deletions backends/arm/operators/op_rshift.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

from typing import List

import serializer.tosa_serializer as ts # type: ignore
Expand Down
2 changes: 2 additions & 0 deletions backends/arm/util/arm_model_evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

import logging
import os
import random
Expand Down
2 changes: 2 additions & 0 deletions backends/cadence/aot/fuse_ops.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary.

# pyre-unsafe


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

Expand Down
2 changes: 2 additions & 0 deletions backends/cadence/aot/tests/test_fusion_ops_passes.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary.

# pyre-unsafe


import unittest

Expand Down
2 changes: 2 additions & 0 deletions backends/cadence/aot/tests/test_memory_passes.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary.

# pyre-unsafe

import logging
import math
import unittest
Expand Down
2 changes: 2 additions & 0 deletions backends/cadence/aot/tests/test_remove_ops_passes.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary.

# pyre-unsafe


import unittest
from typing import cast, Tuple
Expand Down
2 changes: 2 additions & 0 deletions backends/cadence/aot/tests/test_reorder_ops_passes.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary.

# pyre-unsafe


import unittest

Expand Down
2 changes: 2 additions & 0 deletions backends/cadence/aot/tests/test_replace_ops_passes.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary.

# pyre-unsafe

import unittest
from typing import Any, Callable, cast, List, Optional, Sequence, Tuple, Union

Expand Down
2 changes: 2 additions & 0 deletions backends/cadence/aot/tests/test_simplify_ops_passes.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary.

# pyre-unsafe


import unittest
from typing import cast, Optional, Tuple
Expand Down
2 changes: 2 additions & 0 deletions backends/cadence/runtime/runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe


import logging
import numbers
Expand Down
2 changes: 2 additions & 0 deletions backends/cadence/runtime/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe


import logging
import typing
Expand Down
2 changes: 2 additions & 0 deletions examples/cadence/operators/test_add_op.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary.

# pyre-unsafe

import unittest
from typing import Tuple

Expand Down
1 change: 1 addition & 0 deletions examples/cadence/operators/test_g3_ops.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pyre-unsafe
import unittest
from typing import Any, cast, List, OrderedDict, Tuple

Expand Down
2 changes: 2 additions & 0 deletions examples/cadence/operators/test_quantized_conv1d_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

# Example script for exporting simple models to flatbuffer

import logging
Expand Down
2 changes: 2 additions & 0 deletions examples/cadence/operators/test_quantized_linear_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

# pyre-unsafe

# Example script for exporting simple models to flatbuffer

import logging
Expand Down
Loading