summaryrefslogtreecommitdiff
path: root/htk_io/tools/nerv_to_tnet.lua
diff options
context:
space:
mode:
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"))