diff options
author | GeorgOstrovski <ostrovski@google.com> | 2014-06-18 20:11:41 +0400 |
---|---|---|
committer | GeorgOstrovski <ostrovski@google.com> | 2014-06-18 20:11:41 +0400 |
commit | d436f2b1ecd79204a87f0e3d444f0fed1961c8fa (patch) | |
tree | 57078073ab112f2161dc992620ca7ce5883ecc13 | |
parent | bd176eb40dc08ebabb60efe754be261a9574d88b (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.
-rw-r--r-- | test/test.lua | 2 |
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 ') |