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

github.com/torch/nn.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'HardTanh.lua')
-rw-r--r--HardTanh.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/HardTanh.lua b/HardTanh.lua
new file mode 100644
index 0000000..3391479
--- /dev/null
+++ b/HardTanh.lua
@@ -0,0 +1,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