aboutsummaryrefslogtreecommitdiff
path: root/nerv.lua
diff options
context:
space:
mode:
authorcloudygoose <[email protected]>2015-06-03 10:29:41 +0800
committercloudygoose <[email protected]>2015-06-03 10:29:41 +0800
commitbf01fd6cea42def51becb6ea866d4fd335e45842 (patch)
tree09d12e50e3a6156c7e0cd7412b22fa4b61189495 /nerv.lua
parent6984519cbb659aac0b0b323de93d5a90aa2049b7 (diff)
parentbb56a806e0636a0b20117b1644701d63e2bfaefb (diff)
...
Merge remote-tracking branch 'upstream/master'
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'