diff options
| author | Georgi Gerganov <ggerganov@gmail.com> | 2023-05-19 20:14:51 +0300 | 
|---|---|---|
| committer | Georgi Gerganov <ggerganov@gmail.com> | 2023-05-19 20:14:51 +0300 | 
| commit | 4b7e245adf63db675c3daab4a9bfddd451ef4097 (patch) | |
| tree | 95078c19f38caabaea28ab1057a5e333317fb181 /tests | |
| parent | 5ea43392731040b454c293123839b90e159cbb99 (diff) | |
minor : fix compile warnings
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test-sampling.cpp | 10 | 
1 files changed, 6 insertions, 4 deletions
| diff --git a/tests/test-sampling.cpp b/tests/test-sampling.cpp index 9174c1e..ebfc17c 100644 --- a/tests/test-sampling.cpp +++ b/tests/test-sampling.cpp @@ -1,14 +1,16 @@ -#include "llama.h"  #include "ggml.h" -#include <cassert> -#include <cmath> +#include "llama.h" + +#ifdef NDEBUG +#undef NDEBUG +#endif +  #include <numeric>  #include <cassert>  #include <iostream>  #include <vector>  #include <algorithm> -  void dump(const llama_token_data_array * candidates) {      for (size_t i = 0; i < candidates->size; i++) {          printf("%d: %f (%f)\n", candidates->data[i].id, candidates->data[i].p, candidates->data[i].logit); | 
