diff options
author | Determinant <[email protected]> | 2015-06-06 11:02:48 +0800 |
---|---|---|
committer | Determinant <[email protected]> | 2015-06-06 11:02:48 +0800 |
commit | 0bb9cd4271f127c311fd9839855def8f9ea91dab (patch) | |
tree | c9e9a8535ff5405610f380f50a0ea05f8694fef8 /nerv.lua | |
parent | 37af4bed9c3680fdb9db569605f15013e9b6b64d (diff) |
add ASR DNN trainer
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) |