diff options
Diffstat (limited to 'contrib/lua-torch/nn/Clamp.lua')
-rw-r--r-- | contrib/lua-torch/nn/Clamp.lua | 5 |
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 |