From 9ba0beb413d8b443376c36c1701a0dbce1e8d566 Mon Sep 17 00:00:00 2001
From: AlexeyAB <alexeyab84@gmail.com>
Date: Thu, 17 May 2018 14:02:42 +0000
Subject: [PATCH] Fixed resize of network for low resolution network like 128x128

---
 src/matrix.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/matrix.c b/src/matrix.c
index ee14979..08e6109 100644
--- a/src/matrix.c
+++ b/src/matrix.c
@@ -22,8 +22,8 @@
     for(i = 0; i < truth.rows; ++i){
         top_k(guess.vals[i], n, k, indexes);
         for(j = 0; j < k; ++j){
-            int class = indexes[j];
-            if(truth.vals[i][class]){
+            int class_id = indexes[j];
+            if(truth.vals[i][class_id]){
                 ++correct;
                 break;
             }

--
Gitblit v1.10.0