mirror of
https://gitcode.com/gh_mirrors/ope/OpenFace.git
synced 2026-03-29 00:10:16 +00:00
Even more CI simplification. Fixing a warning caused by callig OpenBLAS with a string literal.
This commit is contained in:
@@ -455,7 +455,8 @@ void CCNF_patch_expert::ResponseOpenBlas(const cv::Mat_<float> &area_of_interest
|
||||
// Perform matrix multiplication in OpenBLAS (fortran call)
|
||||
float alpha1 = 1.0;
|
||||
float beta1 = 0.0;
|
||||
sgemm_("N", "N", &normalized_input.cols, &weight_matrix.rows, &weight_matrix.cols, &alpha1, (float*)normalized_input.data, &normalized_input.cols, (float*)weight_matrix.data, &weight_matrix.cols, &beta1, (float*)neuron_resp_full.data, &normalized_input.cols);
|
||||
char *not = "N";
|
||||
sgemm_(not, not, &normalized_input.cols, &weight_matrix.rows, &weight_matrix.cols, &alpha1, (float*)normalized_input.data, &normalized_input.cols, (float*)weight_matrix.data, &weight_matrix.cols, &beta1, (float*)neuron_resp_full.data, &normalized_input.cols);
|
||||
|
||||
// Above is a faster version of this
|
||||
//cv::Mat_<float> neuron_resp_full = this->weight_matrix * normalized_input;
|
||||
@@ -499,7 +500,8 @@ void CCNF_patch_expert::ResponseOpenBlas(const cv::Mat_<float> &area_of_interest
|
||||
// Perform matrix multiplication in OpenBLAS (fortran call)
|
||||
alpha1 = 1.0;
|
||||
beta1 = 0.0;
|
||||
sgemm_("N", "N", &resp_vec_f.cols, &Sigmas[s_to_use].rows, &Sigmas[s_to_use].cols, &alpha1, (float*)resp_vec_f.data, &resp_vec_f.cols, (float*)Sigmas[s_to_use].data, &Sigmas[s_to_use].cols, &beta1, (float*)out.data, &resp_vec_f.cols);
|
||||
not = "N";
|
||||
sgemm_(not, not, &resp_vec_f.cols, &Sigmas[s_to_use].rows, &Sigmas[s_to_use].cols, &alpha1, (float*)resp_vec_f.data, &resp_vec_f.cols, (float*)Sigmas[s_to_use].data, &Sigmas[s_to_use].cols, &beta1, (float*)out.data, &resp_vec_f.cols);
|
||||
|
||||
// Above is a faster version of this
|
||||
//cv::Mat out = Sigmas[s_to_use] * resp_vec_f;
|
||||
|
||||
Reference in New Issue
Block a user