From 5eef883796145229c67f9a45f5cc5cb7f3690880 Mon Sep 17 00:00:00 2001 From: Alexandr-Solovev Date: Fri, 29 Sep 2023 02:04:21 -0700 Subject: [PATCH] minor fix --- .../cpu/finalize_compute_kernel_dense.cpp | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/cpp/oneapi/dal/algo/basic_statistics/backend/cpu/finalize_compute_kernel_dense.cpp b/cpp/oneapi/dal/algo/basic_statistics/backend/cpu/finalize_compute_kernel_dense.cpp index da2a1c80f2b..427b6ccb83b 100644 --- a/cpp/oneapi/dal/algo/basic_statistics/backend/cpu/finalize_compute_kernel_dense.cpp +++ b/cpp/oneapi/dal/algo/basic_statistics/backend/cpu/finalize_compute_kernel_dense.cpp @@ -25,7 +25,7 @@ #include "oneapi/dal/backend/interop/table_conversion.hpp" #include "oneapi/dal/table/row_accessor.hpp" - +#include #include #include @@ -50,12 +50,10 @@ static compute_result call_daal_kernel_finalize_compute( const context_cpu& ctx, const descriptor_t& desc, const partial_compute_result& input) { - const auto result_ids = get_daal_estimates_to_compute(desc); + const auto result_ids = daal_lom::estimatesAll; const auto daal_parameter = daal_lom::Parameter(result_ids); auto column_numbers = input.get_partial_min().get_column_count(); - // const auto nobs = oneapi::dal::row_accessor(input.get_nobs()).pull().get_data(); - //const std::int64_t row_count = nobs[0]; auto daal_partial_obs = interop::convert_to_daal_table(input.get_nobs()); auto daal_partial_min = interop::convert_to_daal_table(input.get_partial_min()); @@ -66,11 +64,11 @@ static compute_result call_daal_kernel_finalize_compute( auto daal_partial_sum_squares_centered = interop::convert_to_daal_table(input.get_partial_sum_squares_centered()); - auto arr_means = array::zeros(column_numbers); - auto arr_rawt = array::zeros(column_numbers); - auto arr_variance = array::zeros(column_numbers); - auto arr_stdev = array::zeros(column_numbers); - auto arr_variation = array::zeros(column_numbers); + auto arr_means = array::empty(column_numbers); + auto arr_rawt = array::empty(column_numbers); + auto arr_variance = array::empty(column_numbers); + auto arr_stdev = array::empty(column_numbers); + auto arr_variation = array::empty(column_numbers); auto daal_means = interop::convert_to_daal_homogen_table(arr_means, 1, column_numbers); auto daal_rawt = interop::convert_to_daal_homogen_table(arr_rawt, 1, column_numbers); @@ -122,6 +120,7 @@ static compute_result call_daal_kernel_finalize_compute( res.set_second_order_raw_moment(interop::convert_from_daal_homogen_table(daal_rawt)); } if (res_op.test(result_options::variance)) { + std::cout<<"here"<(daal_variance)); } if (res_op.test(result_options::standard_deviation)) {