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

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

function ReLU:__init(inplace)
   parent.__init(self, inplace)
   self.mode = 'CUDNN_ACTIVATION_RELU'
end

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