Skip to content

Commit eb2c876

Browse files
committed
Revert "Arm backend: Remove pyre-unsafe from tosa/, vgf/ and ethosu/ (pytorch#15352)"
This reverts commit eff4024.
1 parent e204ea6 commit eb2c876

File tree

13 files changed

+13
-0
lines changed

13 files changed

+13
-0
lines changed

backends/arm/ethosu/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
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
67

78
from .backend import EthosUBackend # noqa: F401
89
from .compile_spec import EthosUCompileSpec # noqa: F401

backends/arm/ethosu/backend.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
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
67

78
#
89
# Main implementation of AoT flow to partition and preprocess for Arm target

backends/arm/ethosu/partitioner.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
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
67

78
from typing import final, Optional, Sequence
89

backends/arm/tosa/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
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
67

78
from .specification import TosaSpecification
89

backends/arm/tosa/backend.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
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
67

78
#
89
# Main implementation of AoT flow to partition and preprocess for Arm target

backends/arm/tosa/mapping.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
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
67
"""Provide PyTorch-to-TOSA mapping helpers.
78
89
Use these utilities to translate PyTorch dtypes and FX node metadata into

backends/arm/tosa/partitioner.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
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
67
"""Provide a partitioner for delegating subgraphs to the TOSA backend.
78
89
Implement logic to identify and tag regions of an ``ExportedProgram`` that can

backends/arm/tosa/quant_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
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
67

78
# Utility functions for TOSA quantized lowerings
89

backends/arm/tosa/specification.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
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
67
"""Provide TOSA specification parsing and context utilities.
78
89
Use these helpers to parse and validate TOSA profile/extension strings and to

backends/arm/tosa/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
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
67

78
import logging
89
from typing import Any

0 commit comments

Comments
 (0)