From 09e2bf82b54db035955fa554099a4deae9fb4f44 Mon Sep 17 00:00:00 2001 From: Guangyun Han Date: Mon, 26 Feb 2024 03:57:42 +0000 Subject: [PATCH] Workaround clang-format bug --- onnxruntime/python/tools/kernel_explorer/kernel_explorer.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/onnxruntime/python/tools/kernel_explorer/kernel_explorer.cc b/onnxruntime/python/tools/kernel_explorer/kernel_explorer.cc index 834348e67cafa..3a36d9419b07b 100644 --- a/onnxruntime/python/tools/kernel_explorer/kernel_explorer.cc +++ b/onnxruntime/python/tools/kernel_explorer/kernel_explorer.cc @@ -58,6 +58,8 @@ KE_REGISTER(m) { return ret; }); + // clang-format ill-format the following code below version 18 + // clang-format off m.def("is_composable_kernel_available", []() { #ifdef USE_COMPOSABLE_KERNEL return true; @@ -81,6 +83,7 @@ KE_REGISTER(m) { return false; #endif }); + // clang-format on } } // namespace onnxruntime