This is a static copy of a profile report

Home

Function details for newton>calc_gnormThis 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 NameFunction TypeCalls
newtonfunction5
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
89
gnorm = gnorm + norm(grad.dfdW...
200.003 s53.7%
90
end
200.001 s15.8%
88
for m = 1 : L
50.001 s9.4%
91
gnorm = sqrt(gnorm);
50.000 s5.8%
86
gnorm = 0.0;
50.000 s2.6%
All other lines  0.001 s12.8%
Totals  0.005 s100% 
Children (called functions)
No children
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function8
Non-code lines (comments, blank lines)3
Code lines (lines that can run)5
Code lines that did run5
Code lines that did not run0
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.