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

Sigmoid.lua - github.com/soumith/cudnn.torch.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e7469ffd396e098a43f7dae59d2a9a3ae343ba45 (plain)
1
2
3
4
5
6
7
8
9
10
11
local Sigmoid, parent = torch.class('cudnn.Sigmoid','cudnn._Pointwise')

function Sigmoid:__init(inplace)
   parent.__init(self, inplace)
   self.mode = 'CUDNN_ACTIVATION_SIGMOID'
end

function Sigmoid:updateOutput(input)
  if not self.mode then self.mode = 'CUDNN_ACTIVATION_SIGMOID' end
  return parent.updateOutput(self, input)
end