Commit 2412a257 authored by Davis King's avatar Davis King

Made this bit of code not look crazy

parent 992dcd48
...@@ -284,7 +284,7 @@ namespace dlib ...@@ -284,7 +284,7 @@ namespace dlib
for (size_t i = 0; i < grad.size(); ++i) for (size_t i = 0; i < grad.size(); ++i)
out[i] = *in++; 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) for (size_t i = 0; i < grad.size(); ++i)
out[i] += *in++; out[i] += *in++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment