summaryrefslogtreecommitdiff
path: root/htk_io/tools/nerv_to_tnet.lua
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2016-03-11 20:09:06 +0800
committerDeterminant <[email protected]>2016-03-11 20:09:06 +0800
commit54b33aa3a95f5a7a023e9ea453094ae081c91f64 (patch)
tree7d170d45566aad6803c4949cf4ec144b584b580d /htk_io/tools/nerv_to_tnet.lua
parent046d6d30b88462407c4acde3d7c47e94ef083b94 (diff)
adapt to new network architecture
Diffstat (limited to 'htk_io/tools/nerv_to_tnet.lua')
-rw-r--r--htk_io/tools/nerv_to_tnet.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/htk_io/tools/nerv_to_tnet.lua b/htk_io/tools/nerv_to_tnet.lua
index c0ac76b..17ff3db 100644
--- a/htk_io/tools/nerv_to_tnet.lua
+++ b/htk_io/tools/nerv_to_tnet.lua
@@ -1,8 +1,9 @@
--- usage: nerv config_file nerv_param_input tnet_output
+-- usage: nerv nerv_to_tnet.lua config_file nerv_param_input tnet_param_output
dofile(arg[1])
+gconf.mmat_type = nerv.MMatrixFloat
param_repo = nerv.ParamRepo()
-param_repo:import({arg[2], gconf.initialized_param[2]}, nil, gconf)
+param_repo:import({arg[2]}, nil, gconf)
layer_repo = make_layer_repo(param_repo)
f = assert(io.open(arg[3], "w"))