X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=profiler-torch.git;a=blobdiff_plain;f=profiler.lua;fp=profiler.lua;h=34e180b56ff9ac9ace944fe34c6f94089c392641;hp=ad280d245ac3ddf6d03e34d4616fe35e04f20c67;hb=c2a852c17eb19f472762343ee8dfe3e0d1b40dbf;hpb=77fb30ba6143770ed71e68d89bde96c82ae8f1a0 diff --git a/profiler.lua b/profiler.lua index ad280d2..34e180b 100644 --- a/profiler.lua +++ b/profiler.lua @@ -37,7 +37,7 @@ require 'sys' profiler = {} -function profiler.decor(model, functionsToDecorate) +function profiler.decorate(model, functionsToDecorate) local functionsToDecorate = functionsToDecorate or { @@ -65,7 +65,7 @@ function profiler.decor(model, functionsToDecorate) if torch.isTypeOf(model, nn.Container) then for _, m in ipairs(model.modules) do - profiler.decor(m, functionsToDecorate) + profiler.decorate(m, functionsToDecorate) end end