This is a static copy of a profile report Home
Function details for newton>calc_gnorm This is a static copy of a profile report Home
newton>calc_gnorm (Calls: 5, Time: 0.005 s) Generated 19-Jun-2021 04:39:11 using performance time. subfunction in file /nfs/inm_phd/07/d07944009/2021/0618-proj6/simpleNN/MATLAB/opt/newton.m Copy to new window for comparing multiple runs
Parents (calling functions)
Function Name Function Type Calls newton function 5
Lines where the most time was spent
Line Number Code Calls Total Time % Time Time Plot 89 gnorm = gnorm + norm(grad.dfdW... 20 0.003 s 53.7% 90 end 20 0.001 s 15.8% 88 for m = 1 : L 5 0.001 s 9.4% 91 gnorm = sqrt(gnorm); 5 0.000 s 5.8% 86 gnorm = 0.0; 5 0.000 s 2.6% All other lines 0.001 s 12.8% Totals 0.005 s 100%
Children (called functions) No children
Code Analyzer results No Code Analyzer messages.
Coverage results Show coverage for parent directoryTotal lines in function 8 Non-code lines (comments, blank lines) 3 Code lines (lines that can run) 5 Code lines that did run 5 Code lines that did not run 0 Coverage (did run/can run) 100.00 %
Function listing time Calls line 84 function gnorm = calc_gnorm(grad, L) 85 < 0.001 5 86 gnorm = 0.0; 87 < 0.001 5 88 for m = 1 : L 0.003 20 89 gnorm = gnorm + norm(grad.dfdW{m},'fro')^2 + norm(grad.dfdb{m})^2; < 0.001 20 90 end < 0.001 5 91 gnorm = sqrt(gnorm);
Other subfunctions in this file are not included in this listing.