Unverified Commit 83921b39 authored by Adrià Arrufat's avatar Adrià Arrufat Committed by GitHub
Browse files

Remove an unused variable and old commented code (#2217)

parent 3c82c225
......@@ -1821,7 +1821,6 @@ namespace dlib
auto idx = n*num+i;
const float dx = gi[idx]*g[n];
temp_dm += dx*-v[n] + dv[n] * -2*(s[idx] - m[n])/num;
// dm[n] += dx*-v[n] + dv[n] * -2*(s[idx] - m[n])/num;
}
warp_reduce_atomic_add(dm[n], temp_dm);
}
......@@ -1829,13 +1828,11 @@ namespace dlib
for (auto n : grid_stride_range_y(0, ns))
{
float temp = 0;
for (auto i : grid_stride_range(0, num))
{
auto idx = n*num+i;
const float dx = gi[idx]*g[n];
out[idx] += dx*v[n] + dv[n] * 2*(s[idx] - m[n])/num + dm[n]/num;
// temp += dx*v[n] + dv[n] * 2*(s[idx] - m[n])/num + dm[n]/num;
}
}
}
......
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