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:
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