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:
Diffstat (limited to 'SpatialSoftMax.lua')
-rw-r--r--SpatialSoftMax.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/SpatialSoftMax.lua b/SpatialSoftMax.lua
index 97c1e38..adbb044 100644
--- a/SpatialSoftMax.lua
+++ b/SpatialSoftMax.lua
@@ -58,7 +58,7 @@ local zero = torch.FloatTensor({0});
function SpatialSoftMax:updateOutput(input)
self:createIODescriptors(input)
errcheck('cudnnSoftmaxForward',
- cudnn.handle[cutorch.getDevice()-1],
+ cudnn.getHandle(),
self.algorithm, self.mode,
one:data(),
self.iDesc[0], input:data(),
@@ -71,7 +71,7 @@ function SpatialSoftMax:updateGradInput(input, gradOutput)
assert(gradOutput:isContiguous());
self:createIODescriptors(input)
errcheck('cudnnSoftmaxBackward',
- cudnn.handle[cutorch.getDevice()-1],
+ cudnn.getHandle(),
self.algorithm, self.mode,
one:data(),
self.oDesc[0], self.output:data(),