diff options
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); |