projects
/
profiler-torch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Now takes the total time estimated at the top if totalTime is not provided.
[profiler-torch.git]
/
test-profiler.lua
diff --git
a/test-profiler.lua
b/test-profiler.lua
index
18677ec
..
71127a0
100755
(executable)
--- a/
test-profiler.lua
+++ b/
test-profiler.lua
@@
-93,9
+93,8
@@
end
-- Print the accumulated timings
-- 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))
print(string.format('Total model time %.02fs', modelTime))
print(string.format('Total data time %.02fs', dataTime))