From 1abcdb23944df3e4563c51e0894fab89e77bcd48 Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Fri, 7 Apr 2023 20:35:19 +0800 Subject: [PATCH] should not be static --- otherarch/utils.cpp | 2 +- otherarch/utils.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/otherarch/utils.cpp b/otherarch/utils.cpp index 352bac182445f..1cbdb72b1ca16 100644 --- a/otherarch/utils.cpp +++ b/otherarch/utils.cpp @@ -426,7 +426,7 @@ gpt_vocab::id gpt_sample_top_k_top_p( return logits_id[idx].second; } -static bool should_transpose_layer(std::string name) +bool should_transpose_layer(std::string name) { if(name.find(".mlp.fc_in.weight")!=std::string::npos || diff --git a/otherarch/utils.h b/otherarch/utils.h index 479a364c88ed4..32a26cb104d2f 100644 --- a/otherarch/utils.h +++ b/otherarch/utils.h @@ -76,4 +76,4 @@ bool utils_gpt_params_parse(int argc, char ** argv, gpt_params & params); void utils_gpt_print_usage(int argc, char ** argv, const gpt_params & params); std::string utils_gpt_random_prompt(std::mt19937 & rng); -static bool should_transpose_layer(std::string name); \ No newline at end of file +bool should_transpose_layer(std::string name); \ No newline at end of file