mirror of
https://github.com/ikawrakow/ik_llama.cpp.git
synced 2026-01-26 17:20:01 +00:00
Fix the fix (#1054)
Co-authored-by: Iwan Kawrakow <iwan.kawrakow@gmail.com>
This commit is contained in:
@@ -467,12 +467,17 @@ std::vector<std::pair<T1,T2>> string_split_pairs(const std::string & str, char d
|
||||
}
|
||||
return values;
|
||||
}
|
||||
}
|
||||
namespace std {
|
||||
bool operator==(const llama_model_tensor_buft_override & lhs, const llama_model_tensor_buft_override & rhs) {
|
||||
return lhs.buft == rhs.buft &&
|
||||
((lhs.pattern == nullptr && rhs.pattern == nullptr) || strcmp(lhs.pattern, rhs.pattern) == 0);
|
||||
}
|
||||
bool operator==(const std::vector<llama_model_tensor_buft_override> & lhs, const std::vector<llama_model_tensor_buft_override> & rhs) {
|
||||
if (lhs.size() != rhs.size()) return false;
|
||||
for (int i = 0; i < int(lhs.size()); ++i) {
|
||||
if (!(lhs[i] == rhs[i])) return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
static cmd_params parse_cmd_params(int argc, char ** argv) {
|
||||
|
||||
Reference in New Issue
Block a user