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 'LogSoftMax.lua')
-rw-r--r--LogSoftMax.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/LogSoftMax.lua b/LogSoftMax.lua
new file mode 100644
index 0000000..8d2947e
--- /dev/null
+++ b/LogSoftMax.lua
@@ -0,0 +1,9 @@
+local LogSoftMax = torch.class('nn.LogSoftMax', 'nn.Module')
+
+function LogSoftMax:updateOutput(input)
+ return input.nn.LogSoftMax_updateOutput(self, input)
+end
+
+function LogSoftMax:updateGradInput(input, gradOutput)
+ return input.nn.LogSoftMax_updateGradInput(self, input, gradOutput)
+end