projects
/
profiler-torch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changed the timing display.
[profiler-torch.git]
/
test-profiler.lua
diff --git
a/test-profiler.lua
b/test-profiler.lua
index
2f1f0ec
..
d17f320
100755
(executable)
--- a/
test-profiler.lua
+++ b/
test-profiler.lua
@@
-49,6
+49,7
@@
local model = nn.Sequential()
-- Decor it for profiling
profiler.decor(model)
-- Decor it for profiling
profiler.decor(model)
+print()
-- Create the data and criterion
-- Create the data and criterion
@@
-87,6
+88,6
@@
end
profiler.print(model, nbSamples)
profiler.print(model, nbSamples)
-print(
'----------------------------------------------------------------------'
)
+print()
print(string.format('Total model time %.02fs', modelTime))
print(string.format('Total data time %.02fs', dataTime))
print(string.format('Total model time %.02fs', modelTime))
print(string.format('Total data time %.02fs', dataTime))