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 'L1Cost.lua')
-rw-r--r--L1Cost.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/L1Cost.lua b/L1Cost.lua
new file mode 100644
index 0000000..83526c9
--- /dev/null
+++ b/L1Cost.lua
@@ -0,0 +1,14 @@
+local L1Cost, parent = torch.class('nn.L1Cost','nn.Criterion')
+
+function L1Cost:__init()
+ parent.__init(self)
+end
+
+function L1Cost:updateOutput(input)
+ return input.nn.L1Cost_updateOutput(self,input)
+end
+
+function L1Cost:updateGradInput(input)
+ return input.nn.L1Cost_updateGradInput(self,input)
+end
+