Skip to content

Commit

Permalink
should not be static
Browse files Browse the repository at this point in the history
  • Loading branch information
LostRuins committed Apr 7, 2023
1 parent 43949f7 commit 1abcdb2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion otherarch/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 ||
Expand Down
2 changes: 1 addition & 1 deletion otherarch/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
bool should_transpose_layer(std::string name);

0 comments on commit 1abcdb2

Please sign in to comment.