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:
authorRonan Collobert <ronan@collobert.com>2012-01-25 17:55:20 +0400
committerRonan Collobert <ronan@collobert.com>2012-01-25 17:55:20 +0400
commit4df3893abd1b9f840f1d9a8c1859799ccbf941de (patch)
treee8a1e1cc1b6ea6e47855347b157eaf419fdb357b /SoftMax.lua
initial revamp of torch7 tree
Diffstat (limited to 'SoftMax.lua')
-rw-r--r--SoftMax.lua9
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