From d993a44a598de200e503b05de5daae0aca962806 Mon Sep 17 00:00:00 2001 From: Anatoly Volkov <117643568+avolkov-intel@users.noreply.github.com> Date: Fri, 2 Aug 2024 05:25:20 -0700 Subject: [PATCH] Add missing ONEDAL_EXPORT for sparse Logistic Regression (#2864) * Add ONEDAL_EXPORT for sparse method * Minor --- cpp/oneapi/dal/algo/logistic_regression/detail/infer_ops.cpp | 3 +++ cpp/oneapi/dal/algo/logistic_regression/detail/train_ops.cpp | 3 +++ 2 files changed, 6 insertions(+) diff --git a/cpp/oneapi/dal/algo/logistic_regression/detail/infer_ops.cpp b/cpp/oneapi/dal/algo/logistic_regression/detail/infer_ops.cpp index 935bd6ab9af..2d462694bbe 100644 --- a/cpp/oneapi/dal/algo/logistic_regression/detail/infer_ops.cpp +++ b/cpp/oneapi/dal/algo/logistic_regression/detail/infer_ops.cpp @@ -40,5 +40,8 @@ struct infer_ops_dispatcher { INSTANTIATE(float, method::dense_batch, task::classification) INSTANTIATE(double, method::dense_batch, task::classification) +INSTANTIATE(float, method::sparse, task::classification) +INSTANTIATE(double, method::sparse, task::classification) + } // namespace v1 } // namespace oneapi::dal::logistic_regression::detail diff --git a/cpp/oneapi/dal/algo/logistic_regression/detail/train_ops.cpp b/cpp/oneapi/dal/algo/logistic_regression/detail/train_ops.cpp index ab8b385154e..28663fffa3d 100644 --- a/cpp/oneapi/dal/algo/logistic_regression/detail/train_ops.cpp +++ b/cpp/oneapi/dal/algo/logistic_regression/detail/train_ops.cpp @@ -65,5 +65,8 @@ struct train_ops_dispatcher { INSTANTIATE(float, method::dense_batch, task::classification) INSTANTIATE(double, method::dense_batch, task::classification) +INSTANTIATE(float, method::sparse, task::classification) +INSTANTIATE(double, method::sparse, task::classification) + } // namespace v1 } // namespace oneapi::dal::logistic_regression::detail