aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/lua-torch/nn/Clamp.lua
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/lua-torch/nn/Clamp.lua')
-rw-r--r--contrib/lua-torch/nn/Clamp.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/lua-torch/nn/Clamp.lua b/contrib/lua-torch/nn/Clamp.lua
new file mode 100644
index 000000000..36397a157
--- /dev/null
+++ b/contrib/lua-torch/nn/Clamp.lua
@@ -0,0 +1,5 @@
+local Clamp, Parent = torch.class('nn.Clamp', 'nn.HardTanh')
+
+function Clamp:__init(min_value, max_value)
+ Parent.__init(self, min_value, max_value)
+end