From 49caeba74bd90f359e3d0831df5f4e3613b03e99 Mon Sep 17 00:00:00 2001 From: Determinant Date: Tue, 25 Aug 2015 11:10:47 +0800 Subject: allow proceeding global transf without frm ext --- speech_utils/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/speech_utils/init.lua b/speech_utils/init.lua index 3500eb4..a2d1dc9 100644 --- a/speech_utils/init.lua +++ b/speech_utils/init.lua @@ -4,7 +4,7 @@ function nerv.speech_utils.global_transf(feat_utter, global_transf, frm_ext, frm_trim, gconf) local rearranged feat_utter = gconf.cumat_type.new_from_host(feat_utter) - if frm_ext > 0 then + if frm_ext ~= nil and frm_ext > 0 then local step = frm_ext * 2 + 1 -- expand the feature local expanded = gconf.cumat_type(feat_utter:nrow(), feat_utter:ncol() * step) -- cgit v1.2.3