diff options
author | cloudygoose <[email protected]> | 2015-06-06 11:03:49 +0800 |
---|---|---|
committer | cloudygoose <[email protected]> | 2015-06-06 11:03:49 +0800 |
commit | 31330d6c095b2b11b34f524169f56dc8d18355c3 (patch) | |
tree | c67e8d625fc5d31c048fca72e3dbeadafec0b9a2 /nerv.lua | |
parent | 3faaef779e384e6283761906552c6c6c4eafb3dd (diff) | |
parent | 0bb9cd4271f127c311fd9839855def8f9ea91dab (diff) |
...
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'nerv.lua')
-rw-r--r-- | nerv.lua | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -2,13 +2,17 @@ require 'libnerv' nerv.utils = require 'pl.utils' function nerv.error(fmt, ...) - error(nerv.utils.printf("Nerv internal error: " .. fmt .. "\n", ...)) + error(nerv.utils.printf("[nerv] internal error: " .. fmt .. "\n", ...)) end function nerv.error_method_not_implemented() nerv.error("method not implemented"); end +function nerv.info(fmt, ...) + nerv.utils.printf("[nerv] info: " .. fmt .. "\n", ...) +end + -- Torch C API wrapper function nerv.class(tname, parenttname) |