This is a static copy of a profile report

Home

Function details for padding_and_phiZ>paddingThis is a static copy of a profile report

Home

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

Parents (calling functions)

Function NameFunction TypeCalls
padding_and_phiZfunction1962
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
21
output(:, p+1:p+a_in, p+1:p+b_...
196234.689 s88.4%
20
output = gpu(@zeros, [d, a_pad...
19624.509 s11.5%
19
Z = reshape(Z, d, a_in, b_in, ...
19620.033 s0.1%
14
a_in = model.ht_input(m); b_in...
19620.008 s0.0%
15
a_pad = model.ht_pad(m); b_pad...
19620.004 s0.0%
All other lines  0.014 s0.0%
Totals  39.256 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
gpufunction19624.430 s11.3%
Self time (built-ins, overhead, etc.)  34.826 s88.7%
Totals  39.256 s100% 
Code Analyzer results
No Code Analyzer messages.
Coverage results
Show coverage for parent directory
Total lines in function10
Non-code lines (comments, blank lines)3
Code lines (lines that can run)7
Code lines that did run7
Code lines that did not run0
Coverage (did run/can run)100.00 %
Function listing
time 
Calls 
 line
  12 
function output = padding(model, Z, m, num_data)
  13 

  0.008 
   1962 
  14
a_in = model.ht_input(m); b_in = model.wd_input(m); 
  0.004 
   1962 
  15
a_pad = model.ht_pad(m); b_pad = model.wd_pad(m); 
  0.002 
   1962 
  16
p = model.wd_pad_added(m); 
  0.003 
   1962 
  17
d = model.ch_input(m); 
  18 

  0.033 
   1962 
  19
Z = reshape(Z, d, a_in, b_in, []); 
  4.509 
   1962 
  20
output = gpu(@zeros, [d, a_pad, b_pad, num_data]); 
 34.689 
   1962 
  21
output(:, p+1:p+a_in, p+1:p+b_in, :) = Z; 

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