Skip to content

Commit d4b0d89

Browse files
committed
Fix return type bug
1 parent 030ec53 commit d4b0d89

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/imatrix/imatrix.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,11 +164,11 @@ static std::vector<float> compute_tensor_averages(const Stats & tstats) {
164164
static bool compute_vector_statistics(std::vector<tensor_statistics> & tstats, const std::string & name, const Stats & e) {
165165
if (e.values.size() % e.counts.size() != 0) {
166166
LOG_ERR("%s: activation size mismatch for tensor %s (%zu vs %zu)\n", __func__, name.c_str(), e.counts.size(), e.values.size());
167-
return -1;;
167+
return false;
168168
}
169169
if (e.counts.empty()) {
170170
LOG_ERR("%s: there are no activations for tensor %s. The imatrix may be suboptimal\n", __func__, name.c_str());
171-
return -1;
171+
return false;
172172
}
173173

174174
const int n_mat = e.counts.size();

0 commit comments

Comments
 (0)