baby-llama : couple of clang-tidy warnings

This commit is contained in:
Georgi Gerganov 2023-05-13 15:38:50 +03:00
parent ef3d42a3aa
commit dae6ba2abe
No known key found for this signature in database
GPG key ID: 449E073F9DC10735

View file

@ -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: