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:
authorSoumith Chintala <soumith@gmail.com>2015-01-31 19:38:14 +0300
committerSoumith Chintala <soumith@gmail.com>2015-01-31 19:38:14 +0300
commitb74da0080e3f6af53836e36478d6df58c572d351 (patch)
treee55e7a4289fca16bd5395204f78765cad4b87f8a /test.lua
parentb61e8304414b2295a229c6c3a25bee0fe505a0db (diff)
fixed L1Penalty constructor arguments
Diffstat (limited to 'test.lua')
-rw-r--r--test.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/test.lua b/test.lua
index 6db38d3..f555b50 100644
--- a/test.lua
+++ b/test.lua
@@ -2793,7 +2793,7 @@ end
function nntest.L1Penalty()
local weight = 1
local sizeAverage = false
- local m = nn.L1Penalty(weight, sizeAverage)
+ local m = nn.L1Penalty(weight, sizeAverage, false)
local input = torch.rand(2,10):add(-0.5)
input[1][1] = 0