diff options
author | Determinant <[email protected]> | 2015-08-25 11:10:47 +0800 |
---|---|---|
committer | Determinant <[email protected]> | 2015-08-25 11:10:47 +0800 |
commit | 49caeba74bd90f359e3d0831df5f4e3613b03e99 (patch) | |
tree | 6162ab7f12937b1eb0919f8ec1f8c9ba0b8cd05c /speech_utils | |
parent | 97425eb035b7e52918946f3799047fe48120d132 (diff) |
allow proceeding global transf without frm ext
Diffstat (limited to 'speech_utils')
-rw-r--r-- | speech_utils/init.lua | 2 |
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) |