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: fb3676e3d45bf6cf0170019386a7afb26baec678 (plain)
1
2
3
4
5
6
local Sigmoid, parent = torch.class('cudnn.Sigmoid','cudnn._Pointwise')

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