remove inverted pca hotfix

This commit is contained in:
ngxson 2024-06-25 10:54:17 +02:00
parent a41075a810
commit 0d4ecfd9f4

View file

@ -299,10 +299,8 @@ static void power_iteration(
//print_debug_tensor(output); //print_debug_tensor(output);
ggml_gallocr_free(allocr); ggml_gallocr_free(allocr);
// TODO @ngxson : The output vector is inverted. Don't know why, but here is quick fix // TODO @ngxson : The output vector is randomly inverted
for (int i = 0; i < output->ne[0]; i++) { // Solution: https://github.com/ggerganov/llama.cpp/pull/8069#issuecomment-2185328171
ggml_set_f32_1d(output, i, -ggml_get_f32_1d(output, i));
}
} }
static void run_pca( static void run_pca(