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
path: root/test
diff options
context:
space:
mode:
authorGeorgOstrovski <ostrovski@google.com>2014-06-18 20:11:41 +0400
committerGeorgOstrovski <ostrovski@google.com>2014-06-18 20:11:41 +0400
commitd436f2b1ecd79204a87f0e3d444f0fed1961c8fa (patch)
tree57078073ab112f2161dc992620ca7ce5883ecc13 /test
parentbd176eb40dc08ebabb60efe754be261a9574d88b (diff)
changed precison threshold for LogSoftmax test
The previous threshold was insufficient and the test occasionally failed. I ran it a large number of times (~1e5) and the actual error reached ~ 2x1e-4, so I propose 3*1e-10 as the new safer threshold.
Diffstat (limited to 'test')
-rw-r--r--test/test.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test.lua b/test/test.lua
index 9b2a2c9..f939ed1 100644
--- a/test/test.lua
+++ b/test/test.lua
@@ -472,7 +472,7 @@ function nntest.LogSoftmax()
local module = nn.LogSoftMax()
local err = jac.testJacobian(module,input)
- mytester:assertlt(err,expprecision, 'error on state ')
+ mytester:assertlt(err,3*expprecision, 'error on state ')
local ferr,berr = jac.testIO(module,input)
mytester:asserteq(ferr, 0, torch.typename(module) .. ' - i/o forward err ')