Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/torch7.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonan Collobert <ronan@collobert.com>2012-02-03 14:04:01 +0400
committerRonan Collobert <ronan@collobert.com>2012-02-03 14:04:01 +0400
commitba1788242623cea0e1588dc0853f8c994d47a553 (patch)
treebe6b4319edc42d0b3fc5e521de24528e1c59d6cf /Tester.lua
parentfc16a68f485380906c8889747037f5a9c68fcfbf (diff)
{min,max,sum,mean,var,std}all now without 'all' in lua
Diffstat (limited to 'Tester.lua')
-rw-r--r--Tester.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tester.lua b/Tester.lua
index 2be1a48..b9ea460 100644
--- a/Tester.lua
+++ b/Tester.lua
@@ -39,7 +39,7 @@ function Tester:assertne (val, condition, message)
end
function Tester:assertTensorEq(ta, tb, condition, message)
local diff = ta-tb
- local err = diff:abs():maxall()
+ local err = diff:abs():max()
self:assert_sub(err<condition,string.format('%s\n%s val=%s, condition=%s',message,' TensorEQ(~=) violation ', tostring(err), tostring(condition)))
end