vlfeat / autonn

A fast and expressive Matlab/MatConvNet deep learning API, with native automatic differentiation
89 stars 35 forks source link

gradients are now correctly displayed in the diagnostics screen again #4

Closed StefanoWoerner closed 7 years ago

StefanoWoerner commented 7 years ago

By deleting the gradients before calling the plotDiagnostics function, gradients are not shown in the diagnostics screen. This PR fixes the issue by freeing memory for the parameters only, but not their derivatives, if opts.plotDiagnostics is set to true.