Commit e44b2aa2 authored by Davis King's avatar Davis King

Added missing requirements check.

parent 21e3e81f
...@@ -268,7 +268,9 @@ namespace dlib ...@@ -268,7 +268,9 @@ namespace dlib
grad.nr() == 1 && grad.nr() == 1 &&
grad.nc() == 1 && grad.nc() == 1 &&
gradient_input.k() == grad.k() && gradient_input.k() == grad.k() &&
gradient_input.size() > 0,""); gradient_input.size() > 0 &&
is_same_object(grad,gradient_input) == false
,"");
const float alpha = 1; const float alpha = 1;
const float beta = 0; const float beta = 0;
......
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