diff options
author | SeanNaren <taz838@hotmail.co.uk> | 2016-04-02 23:16:16 +0300 |
---|---|---|
committer | SeanNaren <taz838@hotmail.co.uk> | 2016-04-02 23:16:16 +0300 |
commit | 3209358d90eda9cda19677059c2d7f875fe6766e (patch) | |
tree | bd507a35bd2d20eb012f41982c252a26c8b5360a | |
parent | c95d7ff38dea35aac0954adf35f5acc57550d48a (diff) |
Put require warp_ctc into constructor
-rw-r--r-- | CTCCriterion.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CTCCriterion.lua b/CTCCriterion.lua index 7f628de..22f13af 100644 --- a/CTCCriterion.lua +++ b/CTCCriterion.lua @@ -1,4 +1,3 @@ -require 'warp_ctc' ------------------------------------------------------------------------ --[[ CTCCriterion ]]-- -- CTC Alignment for sequence data where input and labels do not align. @@ -13,6 +12,7 @@ CTCCriterion.dim = 3 function CTCCriterion:__init() parent.__init(self) + require 'warp_ctc' self.acts = torch.Tensor() self.convertedGradients = torch.Tensor() end |