Fixed compile error in OSX
This commit is contained in:
parent
c3b810868d
commit
8dc06c7ab3
2 changed files with 3 additions and 14 deletions
|
@ -27,11 +27,8 @@ double timer_check()
|
|||
return time_taken;
|
||||
}
|
||||
|
||||
|
||||
void print_tok_vec(std::vector<int> &embd)
|
||||
{
|
||||
print_tok_vec(embd,nullptr);
|
||||
}
|
||||
void print_tok_vec(std::vector<int> &embd, std::map<int32_t, std::string> * decoder)
|
||||
{
|
||||
std::cout << "[";
|
||||
bool first = true;
|
||||
|
@ -42,15 +39,8 @@ void print_tok_vec(std::vector<int> &embd, std::map<int32_t, std::string> * deco
|
|||
std::cout << ',';
|
||||
}
|
||||
first = false;
|
||||
if(decoder)
|
||||
{
|
||||
std::cout << (*decoder)[i];
|
||||
}
|
||||
else
|
||||
{
|
||||
std::cout << i;
|
||||
}
|
||||
}
|
||||
std::cout << "]\n";
|
||||
}
|
||||
void print_tok_vec(std::vector<float> &embd)
|
||||
|
|
|
@ -44,7 +44,6 @@ generation_outputs gpttype_generate(const generation_inputs inputs, generation_o
|
|||
void timer_start();
|
||||
double timer_check();
|
||||
void print_tok_vec(std::vector<int> &embd);
|
||||
void print_tok_vec(std::vector<int> &embd, std::map<int32_t, std::string> * decoder);
|
||||
void print_tok_vec(std::vector<float> &embd);
|
||||
std::vector<int> LongestCommonSubseq(const std::vector<int> x, const std::vector<int> y);
|
||||
bool ArrStartWith(const std::vector<int> targetArray, const std::vector<int> searchSeq);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue