X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=test-profiler.lua;h=7c22576420c80875c0204e555708fdec9a5abe6a;hb=79b01297857422ced2157d7daa2849a04623cdba;hp=2f1f0ec7883d993eb222ba5f7404da1257e7e41d;hpb=1cc41a13ae500ceaf037b3ff880a0eeb25472633;p=profiler-torch.git diff --git a/test-profiler.lua b/test-profiler.lua index 2f1f0ec..7c22576 100755 --- a/test-profiler.lua +++ b/test-profiler.lua @@ -49,6 +49,7 @@ local model = nn.Sequential() -- Decor it for profiling profiler.decor(model) +print() -- Create the data and criterion @@ -86,7 +87,8 @@ end -- Print the accumulated timings profiler.print(model, nbSamples) +-- profiler.print(model) -print('----------------------------------------------------------------------') +print() print(string.format('Total model time %.02fs', modelTime)) print(string.format('Total data time %.02fs', dataTime))