mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-08-10 06:07:58 +00:00
This commit is contained in:
parent
9e1055d2e3
commit
4fcc6fef10
@ -287,6 +287,10 @@ bool IMatrixCollector::load_imatrix(const char* fname) {
|
||||
if (e.values.empty()) {
|
||||
e.values.resize(nval, 0);
|
||||
e.counts.resize(nval, 0);
|
||||
} else if (e.values.size() != (size_t)nval) {
|
||||
LOG_ERROR("inconsistent size for a repeated entry (%d vs %d)\n", (int)e.values.size(), nval);
|
||||
stats_ = {};
|
||||
return false;
|
||||
}
|
||||
|
||||
std::vector<float> tmp(nval);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user