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 '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