From e4dbfc3706d0c5db5e4c98b29657b6c8d3bbcb57 Mon Sep 17 00:00:00 2001 From: Sebastian Larsson Date: Wed, 22 Oct 2025 09:12:55 +0200 Subject: [PATCH] Arm backend: Remove pyre-unsafe from tosa/, vgf/ and ethosu/ Pyre is no longer used. Change-Id: I9439ab982c96331b2fdbdd3e92b507986a9f21e9 Signed-off-by: Sebastian Larsson --- backends/arm/ethosu/__init__.py | 1 - backends/arm/ethosu/backend.py | 1 - backends/arm/ethosu/partitioner.py | 1 - backends/arm/tosa/__init__.py | 1 - backends/arm/tosa/backend.py | 1 - backends/arm/tosa/mapping.py | 1 - backends/arm/tosa/partitioner.py | 1 - backends/arm/tosa/quant_utils.py | 1 - backends/arm/tosa/specification.py | 1 - backends/arm/tosa/utils.py | 1 - backends/arm/vgf/__init__.py | 1 - backends/arm/vgf/backend.py | 1 - backends/arm/vgf/partitioner.py | 1 - 13 files changed, 13 deletions(-) diff --git a/backends/arm/ethosu/__init__.py b/backends/arm/ethosu/__init__.py index 25a91dc5929..10b14d4a68a 100644 --- a/backends/arm/ethosu/__init__.py +++ b/backends/arm/ethosu/__init__.py @@ -3,7 +3,6 @@ # 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 .backend import EthosUBackend # noqa: F401 from .compile_spec import EthosUCompileSpec # noqa: F401 diff --git a/backends/arm/ethosu/backend.py b/backends/arm/ethosu/backend.py index 00da88ef60b..833308453f3 100644 --- a/backends/arm/ethosu/backend.py +++ b/backends/arm/ethosu/backend.py @@ -3,7 +3,6 @@ # 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 # # Main implementation of AoT flow to partition and preprocess for Arm target diff --git a/backends/arm/ethosu/partitioner.py b/backends/arm/ethosu/partitioner.py index 4e6c5f4b985..33ac6a1db62 100644 --- a/backends/arm/ethosu/partitioner.py +++ b/backends/arm/ethosu/partitioner.py @@ -3,7 +3,6 @@ # 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 final, Optional, Sequence diff --git a/backends/arm/tosa/__init__.py b/backends/arm/tosa/__init__.py index 132d3563a43..30860642ac5 100644 --- a/backends/arm/tosa/__init__.py +++ b/backends/arm/tosa/__init__.py @@ -3,7 +3,6 @@ # 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 .specification import TosaSpecification diff --git a/backends/arm/tosa/backend.py b/backends/arm/tosa/backend.py index 6ffb7df4bfc..ce556b268c9 100644 --- a/backends/arm/tosa/backend.py +++ b/backends/arm/tosa/backend.py @@ -3,7 +3,6 @@ # 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 # # Main implementation of AoT flow to partition and preprocess for Arm target diff --git a/backends/arm/tosa/mapping.py b/backends/arm/tosa/mapping.py index 4bc60f9fb3f..22f8ffeacbf 100644 --- a/backends/arm/tosa/mapping.py +++ b/backends/arm/tosa/mapping.py @@ -3,7 +3,6 @@ # 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 """Provide PyTorch-to-TOSA mapping helpers. Use these utilities to translate PyTorch dtypes and FX node metadata into diff --git a/backends/arm/tosa/partitioner.py b/backends/arm/tosa/partitioner.py index 6eb1dcbef72..dbe18f7db7d 100644 --- a/backends/arm/tosa/partitioner.py +++ b/backends/arm/tosa/partitioner.py @@ -3,7 +3,6 @@ # 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 """Provide a partitioner for delegating subgraphs to the TOSA backend. Implement logic to identify and tag regions of an ``ExportedProgram`` that can diff --git a/backends/arm/tosa/quant_utils.py b/backends/arm/tosa/quant_utils.py index dd295ff3e73..28be6a27aa4 100644 --- a/backends/arm/tosa/quant_utils.py +++ b/backends/arm/tosa/quant_utils.py @@ -3,7 +3,6 @@ # 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 # Utility functions for TOSA quantized lowerings diff --git a/backends/arm/tosa/specification.py b/backends/arm/tosa/specification.py index 3edf27760b5..7afa7d9f0de 100644 --- a/backends/arm/tosa/specification.py +++ b/backends/arm/tosa/specification.py @@ -3,7 +3,6 @@ # 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 """Provide TOSA specification parsing and context utilities. Use these helpers to parse and validate TOSA profile/extension strings and to diff --git a/backends/arm/tosa/utils.py b/backends/arm/tosa/utils.py index f6f16724f30..a9415f314a3 100644 --- a/backends/arm/tosa/utils.py +++ b/backends/arm/tosa/utils.py @@ -3,7 +3,6 @@ # 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 from typing import Any diff --git a/backends/arm/vgf/__init__.py b/backends/arm/vgf/__init__.py index f4ce8f5d1a4..88be90e084e 100644 --- a/backends/arm/vgf/__init__.py +++ b/backends/arm/vgf/__init__.py @@ -3,7 +3,6 @@ # 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 .backend import VgfBackend # noqa: F401 from .compile_spec import VgfCompileSpec # noqa: F401 diff --git a/backends/arm/vgf/backend.py b/backends/arm/vgf/backend.py index 3f65456bf8b..baf02d54bb2 100644 --- a/backends/arm/vgf/backend.py +++ b/backends/arm/vgf/backend.py @@ -3,7 +3,6 @@ # 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 # # Main implementation of AoT flow to partition and preprocess for VGF target diff --git a/backends/arm/vgf/partitioner.py b/backends/arm/vgf/partitioner.py index ea10730e810..be684505d2b 100644 --- a/backends/arm/vgf/partitioner.py +++ b/backends/arm/vgf/partitioner.py @@ -3,7 +3,6 @@ # 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 final, Optional, Sequence