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
Function Name | Function Type | Calls |
train | function | 1 |
Line Number | Code | Calls | Total Time | % Time | Time Plot |
20 | net.idx_phiZ{m} = find_index_p... | 3 | 0.013 s | 86.0% | ![]() |
21 | net.idx_phiZ_pool{m} = find_in... | 3 | 0.002 s | 11.6% | ![]() |
8 | net.Z = cell(L+1, 1); | 1 | 0.000 s | 0.6% | ![]() |
9 | net.phiZ = cell(LC, 1); | 1 | 0.000 s | 0.2% | ![]() |
22 | end | 3 | 0.000 s | 0.2% | ![]() |
All other lines | 0.000 s | 1.4% | ![]() | ||
Totals | 0.015 s | 100% |
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
find_index_phiZ | function | 6 | 0.012 s | 83.0% | ![]() |
Self time (built-ins, overhead, etc.) | 0.003 s | 17.0% | ![]() | ||
Totals | 0.015 s | 100% |
Line number | Message |
5 | The value assigned to variable 'nL' might be unused. |
18 | The value assigned to variable 'bsize' might be unused. |
Total lines in function | 22 |
Non-code lines (comments, blank lines) | 7 |
Code lines (lines that can run) | 15 |
Code lines that did run | 15 |
Code lines that did not run | 0 |
Coverage (did run/can run) | 100.00 % |
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.