From 2412a2570e2c874a6b80133c3ea480db9f76cd11 Mon Sep 17 00:00:00 2001 From: Davis King Date: Mon, 6 Jun 2016 21:18:09 -0400 Subject: [PATCH] Made this bit of code not look crazy --- dlib/dnn/cpu_dlib.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlib/dnn/cpu_dlib.cpp b/dlib/dnn/cpu_dlib.cpp index b317c73b9..2df9cbdf6 100644 --- a/dlib/dnn/cpu_dlib.cpp +++ b/dlib/dnn/cpu_dlib.cpp @@ -284,7 +284,7 @@ namespace dlib for (size_t i = 0; i < grad.size(); ++i) out[i] = *in++; - for (long i = 1; i < gradient_input.num_samples(); ++i) + for (long j = 1; j < gradient_input.num_samples(); ++j) { for (size_t i = 0; i < grad.size(); ++i) out[i] += *in++;