From ba33665b332c20556e9e13af9af6afff4d1ab4dc Mon Sep 17 00:00:00 2001 From: Jeff Daily Date: Mon, 9 Oct 2023 19:47:09 +0000 Subject: [PATCH] lintrunner fixes --- onnxruntime/core/providers/rocm/math/softmax.cc | 12 ++++++------ .../core/providers/rocm/rocm_execution_provider.cc | 2 ++ .../core/providers/rocm/rocm_provider_factory.cc | 2 -- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/onnxruntime/core/providers/rocm/math/softmax.cc b/onnxruntime/core/providers/rocm/math/softmax.cc index 64edbc1558d1e..8d922d0bb4db1 100644 --- a/onnxruntime/core/providers/rocm/math/softmax.cc +++ b/onnxruntime/core/providers/rocm/math/softmax.cc @@ -39,12 +39,12 @@ Status SoftMaxComputeHelper( gsl::narrow_cast(N), tuning_ctx); } -#define SPECIALIZED_SOFTMAX_HELPER_IMPL(T, TOut) \ - template Status SoftMaxComputeHelper(Stream * stream, const T* input, \ - const TensorShape& shape, TOut* Y, int64_t axis, \ - RocmTuningContext* tuning_ctx); \ - template Status SoftMaxComputeHelper(Stream * stream, const T* input, \ - const TensorShape& shape, TOut* Y, int64_t axis, \ +#define SPECIALIZED_SOFTMAX_HELPER_IMPL(T, TOut) \ + template Status SoftMaxComputeHelper(Stream * stream, const T* input, \ + const TensorShape& shape, TOut* Y, int64_t axis, \ + RocmTuningContext* tuning_ctx); \ + template Status SoftMaxComputeHelper(Stream * stream, const T* input, \ + const TensorShape& shape, TOut* Y, int64_t axis, \ RocmTuningContext* tuning_ctx); SPECIALIZED_SOFTMAX_HELPER_IMPL(MLFloat16, float) diff --git a/onnxruntime/core/providers/rocm/rocm_execution_provider.cc b/onnxruntime/core/providers/rocm/rocm_execution_provider.cc index 3c106313a89cd..d7c5098d9dbe4 100644 --- a/onnxruntime/core/providers/rocm/rocm_execution_provider.cc +++ b/onnxruntime/core/providers/rocm/rocm_execution_provider.cc @@ -1269,6 +1269,7 @@ KernelCreateInfo BuildKernelCreateInfo() { return {}; } +// clang-format off static Status RegisterRocmKernels(KernelRegistry& kernel_registry) { static const BuildKernelCreateInfoFn function_table[] = { BuildKernelCreateInfo, // default entry to avoid the list become empty after ops-reducing @@ -2213,6 +2214,7 @@ static Status RegisterRocmKernels(KernelRegistry& kernel_registry) { return Status::OK(); } +// clang-format on } // namespace rocm diff --git a/onnxruntime/core/providers/rocm/rocm_provider_factory.cc b/onnxruntime/core/providers/rocm/rocm_provider_factory.cc index f445ebac6c952..4d88c25469372 100644 --- a/onnxruntime/core/providers/rocm/rocm_provider_factory.cc +++ b/onnxruntime/core/providers/rocm/rocm_provider_factory.cc @@ -242,6 +242,4 @@ extern "C" { ORT_API(onnxruntime::Provider*, GetProvider) { return &onnxruntime::g_provider; } - } -