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;
|
return time_taken;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void print_tok_vec(std::vector<int> &embd)
|
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 << "[";
|
std::cout << "[";
|
||||||
bool first = true;
|
bool first = true;
|
||||||
|
@ -42,14 +39,7 @@ void print_tok_vec(std::vector<int> &embd, std::map<int32_t, std::string> * deco
|
||||||
std::cout << ',';
|
std::cout << ',';
|
||||||
}
|
}
|
||||||
first = false;
|
first = false;
|
||||||
if(decoder)
|
std::cout << i;
|
||||||
{
|
|
||||||
std::cout << (*decoder)[i];
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
std::cout << i;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
std::cout << "]\n";
|
std::cout << "]\n";
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,7 +44,6 @@ generation_outputs gpttype_generate(const generation_inputs inputs, generation_o
|
||||||
void timer_start();
|
void timer_start();
|
||||||
double timer_check();
|
double timer_check();
|
||||||
void print_tok_vec(std::vector<int> &embd);
|
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);
|
void print_tok_vec(std::vector<float> &embd);
|
||||||
std::vector<int> LongestCommonSubseq(const std::vector<int> x, const std::vector<int> y);
|
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);
|
bool ArrStartWith(const std::vector<int> targetArray, const std::vector<int> searchSeq);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue