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

github.com/soumith/cudnn.torch.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsoumith <soumith@fb.com>2014-12-27 00:33:38 +0300
committersoumith <soumith@fb.com>2014-12-27 00:33:38 +0300
commit7b0d52e68e07dee37ed347a607f6d9fa94802449 (patch)
treed7cd591eff8a741100a9df5e06431430ea500b59 /SpatialSoftMax.lua
parent7fbf2cdd07cc95962a80a02add85c79562724ca7 (diff)
fix for R2-RC1 beta=0 bug
Diffstat (limited to 'SpatialSoftMax.lua')
-rw-r--r--SpatialSoftMax.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/SpatialSoftMax.lua b/SpatialSoftMax.lua
index 87af4d5..1586882 100644
--- a/SpatialSoftMax.lua
+++ b/SpatialSoftMax.lua
@@ -57,6 +57,7 @@ function SpatialSoftMax:updateGradInput(input, gradOutput)
assert((gradOutput:dim() == 4 or gradOutput:dim() == 3)
and gradOutput:isContiguous());
self:createIODescriptors(input)
+ self.gradInput:fill(1) -- to get around bug in R2-RC1 https://github.com/soumith/cudnn.torch/issues/9
errcheck('cudnnSoftmaxBackward',
cudnn.handle[cutorch.getDevice()-1],
self.algorithm, self.mode,