| 100 | } |
| 101 | |
| 102 | void sigmoid_kernel(SyncArray<kernel_type> &dot_product, kernel_type gamma, kernel_type coef0, int mn) { |
| 103 | kernel_type *dot_product_data = dot_product.host_data(); |
| 104 | #pragma omp parallel for schedule(guided) |
| 105 | for (int idx = 0; idx < mn; idx++) { |
| 106 | dot_product_data[idx] = tanhf(gamma * dot_product_data[idx] + coef0); |
| 107 | } |
| 108 | } |
| 109 | |
| 110 | void sum_kernel_values(const SyncArray<float_type> &coef, int total_sv, const SyncArray<int> &sv_start, |
| 111 | const SyncArray<int> &sv_count, const SyncArray<float_type> &rho, |
no test coverage detected