aboutsummaryrefslogtreecommitdiff
path: root/nerv.lua
diff options
context:
space:
mode:
Diffstat (limited to 'nerv.lua')
-rw-r--r--nerv.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/nerv.lua b/nerv.lua
index cb53f29..ce6bc44 100644
--- a/nerv.lua
+++ b/nerv.lua
@@ -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)