Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/clementfarabet/lua---nnx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeanNaren <taz838@hotmail.co.uk>2016-04-09 00:31:05 +0300
committerSeanNaren <taz838@hotmail.co.uk>2016-04-09 00:31:05 +0300
commit7e75a910842690630b9bde5101ef35c9851c4771 (patch)
tree2ded1ab22c79c86ef2fa6f60a6e68cb3de9b7d96
parent60c5b6a34e70daf7dde6d96f35203bb14bd57ea1 (diff)
removed type change of float
-rw-r--r--CTCCriterion.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/CTCCriterion.lua b/CTCCriterion.lua
index 66ddde4..0aa4ae5 100644
--- a/CTCCriterion.lua
+++ b/CTCCriterion.lua
@@ -48,7 +48,7 @@ function CTCCriterion:updateGradInput(output, labels)
gpu_ctc(acts, grads, labels, sizes)
else
grads = grads:float()
- cpu_ctc(acts:float(), grads:float(), labels, sizes)
+ cpu_ctc(acts:float(), grads, labels, sizes)
end
self.gradInput = self:revertBatching(grads, tensorSizes):typeAs(output)
return self.gradInput