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:
authorGeorgOstrovski <ostrovski@google.com>2015-03-04 14:40:22 +0300
committerGeorgOstrovski <ostrovski@google.com>2015-03-04 14:40:22 +0300
commit2b5c454b89bd484b62fe114cef1da9d7d14e9b32 (patch)
treef40f5a2df5c6e97643a17186954f42c54c8f23c2 /test.lua
parentb5821697ad079258f0943a907d4172c434974030 (diff)
Adjusted error tolerance to avoid test flakyness
Diffstat (limited to 'test.lua')
-rw-r--r--test.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/test.lua b/test.lua
index ed8ee87..f1576fc 100644
--- a/test.lua
+++ b/test.lua
@@ -2334,7 +2334,7 @@ function nntest.PairwiseDistance()
module:add(nn.PairwiseDistance(p))
local err = jac.testJacobian(module,input)
- mytester:assertlt(err,precision, ' error on state ')
+ mytester:assertlt(err, 1e-4, ' error on state ')
local ferr,berr = jac.testIO(module,input)
mytester:asserteq(ferr, 0, torch.typename(module)..' - i/o forward err ')
@@ -2356,7 +2356,7 @@ function nntest.PairwiseDistance()
module:add(nn.PairwiseDistance(p))
err = jac.testJacobian(module,input)
- mytester:assertlt(err,precision, ' error on state ')
+ mytester:assertlt(err, 1e-4, ' error on state ')
-- Also check that the forward prop result is correct.
-- manually calculate each distance separately