diff options
author | Ronan Collobert <ronan@collobert.com> | 2012-02-03 14:04:01 +0400 |
---|---|---|
committer | Ronan Collobert <ronan@collobert.com> | 2012-02-03 14:04:01 +0400 |
commit | ba1788242623cea0e1588dc0853f8c994d47a553 (patch) | |
tree | be6b4319edc42d0b3fc5e521de24528e1c59d6cf /Tensor.lua | |
parent | fc16a68f485380906c8889747037f5a9c68fcfbf (diff) |
{min,max,sum,mean,var,std}all now without 'all' in lua
Diffstat (limited to 'Tensor.lua')
-rw-r--r-- | Tensor.lua | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -20,11 +20,11 @@ local function Storage__printformat(self) end -- end local tensor = torch.DoubleTensor(torch.DoubleStorage(self:size()):copy(self), 1, self:size()):abs() - local expMin = tensor:minall() + local expMin = tensor:min() if expMin ~= 0 then expMin = math.floor(math.log10(expMin)) + 1 end - local expMax = tensor:maxall() + local expMax = tensor:max() if expMax ~= 0 then expMax = math.floor(math.log10(expMax)) + 1 end |