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>2015-04-10 05:13:50 +0300
committersoumith <soumith@fb.com>2015-04-10 05:13:50 +0300
commit35d4f5df368415c27dda955130bcc01d6234ffe6 (patch)
tree24ea2d025ba13791d85f97a4cbb2adaab627278f /Pointwise.lua
parent48b3b6df88198c28086de74a3d74d4745d507f76 (diff)
using the new streams API (cudnn does not ovelap compute yet, weird)
Diffstat (limited to 'Pointwise.lua')
-rw-r--r--Pointwise.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/Pointwise.lua b/Pointwise.lua
index bf1358a..9b3e71a 100644
--- a/Pointwise.lua
+++ b/Pointwise.lua
@@ -28,7 +28,7 @@ function Pointwise:updateOutput(input)
self:createIODescriptors(input)
if self.inplace then self.output = input end
errcheck('cudnnActivationForward',
- cudnn.handle[cutorch.getDevice()-1], self.mode,
+ cudnn.getHandle(), self.mode,
one:data(),
self.iDesc[0], input:data(),
zero:data(),
@@ -46,7 +46,7 @@ function Pointwise:updateGradInput(input, gradOutput)
self:createIODescriptors(input)
if self.inplace then self.output = input; self.gradInput = gradOutput end
errcheck('cudnnActivationBackward',
- cudnn.handle[cutorch.getDevice()-1], self.mode,
+ cudnn.getHandle(), self.mode,
one:data(),
self.iDesc[0], self.output:data(),
self.iDesc[0], gradOutput:data(),