diff options
Diffstat (limited to 'LogSoftMax.lua')
-rw-r--r-- | LogSoftMax.lua | 9 |
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 |