Skip to content

Commit b83071f

Browse files
committed
swap inherit order
1 parent 3b05c52 commit b83071f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

backends/apple/metal/metal_backend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
@experimental(
1717
"This API and all of Metal backend related functionality are experimental."
1818
)
19-
class MetalBackend(BackendDetails, AotiBackend):
19+
class MetalBackend(AotiBackend, BackendDetails):
2020
"""
2121
MetalBackend is a backend that compiles a model to run on Metal/MPS devices. It uses the AOTInductor compiler to generate
2222
optimized Metal kernels for the model's operators with libtorch-free. The compiled model can be executed on Metal devices

backends/cuda/cuda_backend.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@
99

1010
import torch
1111
from executorch.backends.aoti.aoti_backend import AotiBackend
12-
from executorch.exir.backend.backend_details import BackendDetails
1312
from executorch.exir._warnings import experimental
13+
from executorch.exir.backend.backend_details import BackendDetails
1414
from torch._inductor.decomposition import conv1d_to_conv2d
1515

1616

1717
@final
1818
@experimental(
1919
"This API and all of cuda backend related functionality are experimental."
2020
)
21-
class CudaBackend(BackendDetails, AotiBackend):
21+
class CudaBackend(AotiBackend, BackendDetails):
2222
"""
2323
CudaBackend is a backend that compiles a model to run on CUDA devices. It uses the AOTInductor compiler to generate
2424
optimized CUDA kernels for the model's operators with libtorch-free. The compiled model can be executed on CUDA devices

0 commit comments

Comments
 (0)