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

HardTanh.lua - github.com/torch/nn.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3391479858cf3d2ed3a316aadd139f55660a7abb (plain)
1
2
3
4
5
6
7
8
9
local HardTanh = torch.class('nn.HardTanh', 'nn.Module')

function HardTanh:updateOutput(input)
   return input.nn.HardTanh_updateOutput(self, input)
end

function HardTanh:updateGradInput(input, gradOutput)
   return input.nn.HardTanh_updateGradInput(self, input, gradOutput)
end