)
:add(nn.Linear(1000, 100))
--- Decor it for profiling
+-- Decorate it for profiling
profiler.decorate(model)
+
print()
-torch.save('model.t7', model)
+-- torch.save('model.t7', model)
-- Create the data and criterion
-- Print the accumulated timings
-profiler.print(model, nbSamples, modelTime)
--- profiler.print(model)
+-- profiler.print(model, nbSamples)
+profiler.print(model)
-print()
print(string.format('Total model time %.02fs', modelTime))
print(string.format('Total data time %.02fs', dataTime))