diff options
author | Ronan Collobert <ronan@collobert.com> | 2012-01-25 17:55:20 +0400 |
---|---|---|
committer | Ronan Collobert <ronan@collobert.com> | 2012-01-25 17:55:20 +0400 |
commit | 4df3893abd1b9f840f1d9a8c1859799ccbf941de (patch) | |
tree | e8a1e1cc1b6ea6e47855347b157eaf419fdb357b /SoftMax.lua |
initial revamp of torch7 tree
Diffstat (limited to 'SoftMax.lua')
-rw-r--r-- | SoftMax.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/SoftMax.lua b/SoftMax.lua new file mode 100644 index 0000000..609b353 --- /dev/null +++ b/SoftMax.lua @@ -0,0 +1,9 @@ +local SoftMax, parent = torch.class('nn.SoftMax', 'nn.Module') + +function SoftMax:updateOutput(input) + return input.nn.SoftMax_updateOutput(self, input) +end + +function SoftMax:updateGradInput(input, gradOutput) + return input.nn.SoftMax_updateGradInput(self, input, gradOutput) +end |