diff --git a/c10/core/DispatchKeySet.h b/c10/core/DispatchKeySet.h index 940c09e39fbe..abcc4becc3b0 100644 --- a/c10/core/DispatchKeySet.h +++ b/c10/core/DispatchKeySet.h @@ -204,6 +204,7 @@ constexpr DispatchKeySet autogradother_backends = DispatchKeySet({ DispatchKey::FPGA, DispatchKey::MSNPU, DispatchKey::Vulkan, + DispatchKey::Metal, DispatchKey::MKLDNN, DispatchKey::OpenGL, DispatchKey::OpenCL,