summaryrefslogtreecommitdiff
path: root/nerv.lua
diff options
context:
space:
mode:
Diffstat (limited to 'nerv.lua')
-rw-r--r--nerv.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/nerv.lua b/nerv.lua
index 00042a7..cb53f29 100644
--- a/nerv.lua
+++ b/nerv.lua
@@ -71,6 +71,11 @@ function table.tostring(tbl)
return "{" .. table.concat(result, ",") .. "}"
end
+function nerv.get_type(typename)
+ return assert(loadstring("return " .. typename))()
+end
+
require 'matrix.init'
require 'io.init'
require 'layer.init'
+require 'nn.init'