Skip to content

Commit caf48b7

Browse files
authored
Migrate //executorch/... from PyTorchBackendInterface to BackendInterface
Differential Revision: D61927046 Pull Request resolved: #5054
1 parent 5156615 commit caf48b7

File tree

9 files changed

+10
-9
lines changed

9 files changed

+10
-9
lines changed

backends/apple/coreml/runtime/include/coreml_backend/delegate.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class BackendDelegate;
2020
namespace torch {
2121
namespace executor {
2222

23-
class CoreMLBackendDelegate final : public PyTorchBackendInterface {
23+
class CoreMLBackendDelegate final : public ::executorch::runtime::BackendInterface {
2424
public:
2525
CoreMLBackendDelegate() noexcept;
2626
~CoreMLBackendDelegate() = default;

backends/apple/mps/runtime/MPSBackend.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
namespace torch {
2020
namespace executor {
2121

22-
class MPSBackend final : public PyTorchBackendInterface {
22+
class MPSBackend final : public ::executorch::runtime::BackendInterface {
2323
public:
2424
~MPSBackend() = default;
2525

backends/arm/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Quantization:
3333
- `arm_quantizer_utils.py` - Utilities for quantization
3434

3535
Runtime:
36-
- `runtime/ArmBackendEthosU.cpp` - The Arm backend implementation of the ExecuTorch runtime backend (PyTorchBackendInterface) for Ethos-U
36+
- `runtime/ArmBackendEthosU.cpp` - The Arm backend implementation of the ExecuTorch runtime backend (BackendInterface) for Ethos-U
3737

3838
Other:
3939
- `third-party/` - Dependencies on other code - in particular the TOSA serialization_lib for compiling to TOSA and the ethos-u-core-driver for the bare-metal backend supporting Ethos-U

backends/arm/runtime/ArmBackendEthosU.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class ArmBackendExecuteCallbacks {
4646
}
4747
};
4848

49-
class ArmBackend final : public PyTorchBackendInterface {
49+
class ArmBackend final : public ::executorch::runtime::BackendInterface {
5050
public:
5151
ArmBackend() {}
5252

backends/mediatek/runtime/include/NeuronBackend.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
namespace torch {
2727
namespace executor {
2828

29-
class NeuronBackend final : public PyTorchBackendInterface {
29+
class NeuronBackend final : public ::executorch::runtime::BackendInterface {
3030
public:
3131
Result<DelegateHandle*> init(
3232
BackendInitContext& context,

backends/qualcomm/runtime/QnnExecuTorchBackend.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
namespace torch {
1515
namespace executor {
1616

17-
class QnnExecuTorchBackend final : public PyTorchBackendInterface {
17+
class QnnExecuTorchBackend final
18+
: public ::executorch::runtime::BackendInterface {
1819
public:
1920
~QnnExecuTorchBackend(){};
2021

backends/vulkan/runtime/VulkanBackend.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ void maybe_resize_output(
412412
// VulkanBackend class
413413
//
414414

415-
class VulkanBackend final : public PyTorchBackendInterface {
415+
class VulkanBackend final : public ::executorch::runtime::BackendInterface {
416416
public:
417417
~VulkanBackend() override = default;
418418

backends/xnnpack/runtime/XNNPACKBackend.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
namespace torch {
2121
namespace executor {
2222

23-
class XnnpackBackend final : public PyTorchBackendInterface {
23+
class XnnpackBackend final : public ::executorch::runtime::BackendInterface {
2424
public:
2525
~XnnpackBackend() = default;
2626

exir/backend/test/demos/rpc/ExecutorBackend.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ namespace executor {
3535
* front-end before having the actual backend ready.
3636
*/
3737

38-
class ExecutorBackend final : public PyTorchBackendInterface {
38+
class ExecutorBackend final : public ::executorch::runtime::BackendInterface {
3939
public:
4040
~ExecutorBackend() = default;
4141

0 commit comments

Comments
 (0)