summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--speech_utils/init.lua2
1 files changed, 1 insertions, 1 deletions
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)