Commit eaf568f9 authored by Lukas's avatar Lukas

Prevent static assert for set_size on gradient in compute_nuclear_norm_parts()

parent 2ba3c4d4
......@@ -550,7 +550,7 @@ namespace dlib
) const
{
obj = 0;
grad.set_size(m.size());
grad.set_size(m.size(), 1);
grad = 0;
matrix<double> u,v,w,f;
......
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