diff options
author | Determinant <[email protected]> | 2015-06-07 11:55:09 +0800 |
---|---|---|
committer | Determinant <[email protected]> | 2015-06-07 11:55:09 +0800 |
commit | 6e720b961f7edac9c3a41affe0ca40dd0ec9fc85 (patch) | |
tree | 19ba0a682f9b75e70e18b796fbe5315ee5953d3a /nerv.lua | |
parent | 5bcd5d79875587b08d598cc08bd5f8b1f5e14a23 (diff) |
fix memory leak in profiling; other minor changes
Diffstat (limited to 'nerv.lua')
-rw-r--r-- | nerv.lua | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -10,7 +10,9 @@ function nerv.error_method_not_implemented() end function nerv.info(fmt, ...) - nerv.utils.printf("[nerv] info: " .. fmt .. "\n", ...) + nerv.utils.printf( + string.format("(%s)[nerv] info: %s\n", + os.date("%H:%M:%S %F"), fmt), ...) end -- Torch C API wrapper |