playing around with truncate stuff

This commit is contained in:
Roy Han
2024-06-28 18:17:09 -07:00
parent c111d8bb51
commit 80c1a3f812
4 changed files with 16 additions and 1 deletions

View File

@@ -658,7 +658,7 @@ static json probs_vector_to_json(const llama_context *ctx, const std::vector<com
}
// normalize a vector
std::vector<float> normalize_vector(const std::vector<float>& vec, int size) {
static std::vector<float> normalize_vector(const std::vector<float>& vec, int size) {
double sum = 0.0;
for (float value : vec) {
sum += value * value;