diff options
author | Soumith Chintala <soumith@gmail.com> | 2015-01-31 19:38:14 +0300 |
---|---|---|
committer | Soumith Chintala <soumith@gmail.com> | 2015-01-31 19:38:14 +0300 |
commit | b74da0080e3f6af53836e36478d6df58c572d351 (patch) | |
tree | e55e7a4289fca16bd5395204f78765cad4b87f8a /test.lua | |
parent | b61e8304414b2295a229c6c3a25bee0fe505a0db (diff) |
fixed L1Penalty constructor arguments
Diffstat (limited to 'test.lua')
-rw-r--r-- | test.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |