Fixed a stupid and embarrassing typo.
[profiler-torch.git] / test-profiler.lua
index 2f1f0ec..a78c944 100755 (executable)
@@ -48,7 +48,10 @@ local model = nn.Sequential()
 
 -- Decor it for profiling
 
-profiler.decor(model)
+profiler.decorate(model)
+print()
+
+torch.save('model.t7', model)
 
 -- Create the data and criterion
 
@@ -86,7 +89,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))