mirror of https://github.com/davisking/dlib.git
Prevent static assert for set_size on gradient in compute_nuclear_norm_parts()
This commit is contained in:
parent
2ba3c4d47c
commit
eaf568f9b4
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue