From dae6ba2abe2ead015de6a9929b9f3c869f88cb4a Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Sat, 13 May 2023 15:38:50 +0300 Subject: [PATCH] baby-llama : couple of clang-tidy warnings --- examples/baby-llama/baby-llama.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/baby-llama/baby-llama.cpp b/examples/baby-llama/baby-llama.cpp index beefe0944..5573c154b 100644 --- a/examples/baby-llama/baby-llama.cpp +++ b/examples/baby-llama/baby-llama.cpp @@ -30,7 +30,7 @@ float frand_normal(struct random_normal_distribution * rnd) { struct ggml_tensor * randomize_tensor( struct ggml_tensor * tensor, int ndims, - int64_t ne[], + const int64_t ne[], float fmin, float fmax) { @@ -77,7 +77,7 @@ struct ggml_tensor * randomize_tensor( struct ggml_tensor * randomize_tensor_normal( struct ggml_tensor * tensor, int ndims, - int64_t ne[], + const int64_t ne[], struct random_normal_distribution * rnd) { switch (ndims) { case 1: