This is a static copy of a profile report

Home

Function details for init_netThis is a static copy of a profile report

Home

init_net (Calls: 1, Time: 0.015 s)
Generated 19-Jun-2021 04:39:10 using performance time.
function in file /nfs/inm_phd/07/d07944009/2021/0618-proj6/simpleNN/MATLAB/cnn/init_net.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
trainfunction1
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
20
net.idx_phiZ{m} = find_index_p...
30.013 s86.0%
21
net.idx_phiZ_pool{m} = find_in...
30.002 s11.6%
8
net.Z = cell(L+1, 1);
10.000 s0.6%
9
net.phiZ = cell(LC, 1);
10.000 s0.2%
22
end
30.000 s0.2%
All other lines  0.000 s1.4%
Totals  0.015 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
find_index_phiZfunction60.012 s83.0%
Self time (built-ins, overhead, etc.)  0.003 s17.0%
Totals  0.015 s100% 
Code Analyzer results
Line numberMessage
5The value assigned to variable 'nL' might be unused.
18The value assigned to variable 'bsize' might be unused.
Coverage results
Show coverage for parent directory
Total lines in function22
Non-code lines (comments, blank lines)7
Code lines (lines that can run)15
Code lines that did run15
Code lines that did not run0
Coverage (did run/can run)100.00 %
Function listing
time 
Calls 
 line
   1 
function net = init_net(model, param)
   2 

< 0.001 
      1 
   3
L = model.L; 
< 0.001 
      1 
   4
LC = model.LC; 
< 0.001 
      1 
   5
nL = model.nL; 
   6 

   7 
% Initialize temporary variables for layer 1 to L+1 (used in pipeline)
< 0.001 
      1 
   8
net.Z = cell(L+1, 1); 
< 0.001 
      1 
   9
net.phiZ = cell(LC, 1); 
< 0.001 
      1 
  10
net.dlossdW = cell(L, 1); 
< 0.001 
      1 
  11
net.dlossdb = cell(L, 1); 
  12 

  13 
% P_pad, P_phi, P_pool
< 0.001 
      1 
  14
net.idx_phiZ = cell(LC, 1); 
< 0.001 
      1 
  15
net.idx_phiZ_pool = cell(LC, 1); 
< 0.001 
      1 
  16
net.idx_pool = cell(LC, 1); 
  17 

< 0.001 
      1 
  18
bsize = param.bsize; 
< 0.001 
      1 
  19
for m = 1 : LC 
  0.013 
      3 
  20
	net.idx_phiZ{m} = find_index_phiZ(model.ht_pad(m), model.wd_pad(m), model.ch_input(m), model.wd_filter(m), model.strides(m)); 
  0.002 
      3 
  21
	net.idx_phiZ_pool{m} = find_index_phiZ(model.ht_conv(m), model.wd_conv(m), model.ch_input(m+1), model.wd_subimage_pool(m), model.wd_subimage_pool(m)); 
< 0.001 
      3 
  22
end 

Other subfunctions in this file are not included in this listing.