summaryrefslogtreecommitdiff
path: root/tnet_io/init.c
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2015-06-01 17:37:04 +0800
committerDeterminant <[email protected]>2015-06-01 17:37:04 +0800
commitd8ea67ee420c2fc73085da04de86df023acd98d7 (patch)
tree6fd6dc7d71df34c5d55db3bc062deebb0fe753ad /tnet_io/init.c
parent3b156cd0cd19aa7db97082161921064a0a871328 (diff)
...
Diffstat (limited to 'tnet_io/init.c')
-rw-r--r--tnet_io/init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tnet_io/init.c b/tnet_io/init.c
index 7195eb7..3fa7cb8 100644
--- a/tnet_io/init.c
+++ b/tnet_io/init.c
@@ -29,7 +29,7 @@ static int feat_repo_current_tag(lua_State *L) {
static int feat_repo_current_utterance(lua_State *L) {
TNetFeatureRepo *repo = luaT_checkudata(L, 1, nerv_tnet_feat_repo_tname);
- Matrix *utter = tnet_feature_repo_read_utterance(repo);
+ Matrix *utter = tnet_feature_repo_read_utterance(repo, L);
luaT_pushudata(L, utter, nerv_matrix_host_float_tname);
return 1;
}
@@ -67,7 +67,7 @@ static int label_repo_read_utterance(lua_State *L) {
Matrix *utter = tnet_label_repo_read_utterance(repo,
frames,
tnet_feature_repo_current_samplerate(feat_repo),
- tnet_feature_repo_current_tag(feat_repo));
+ tnet_feature_repo_current_tag(feat_repo), L);
luaT_pushudata(L, utter, nerv_matrix_host_float_tname);
return 1;
}