Prevent static assert for set_size on gradient in compute_nuclear_norm_parts()

This commit is contained in:
Lukas 2014-02-10 14:19:46 +01:00
parent 2ba3c4d47c
commit eaf568f9b4
1 changed files with 1 additions and 1 deletions

View File

@ -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;