Skip to content

Commit

Permalink
Workaround clang-format bug
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudhan committed Feb 26, 2024
1 parent a239298 commit 09e2bf8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions onnxruntime/python/tools/kernel_explorer/kernel_explorer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -81,6 +83,7 @@ KE_REGISTER(m) {
return false;
#endif
});
// clang-format on
}

} // namespace onnxruntime

0 comments on commit 09e2bf8

Please sign in to comment.