dataset.lua: Comment out unused torch.linspace.

This commit is contained in:
Brandon Amos 2016-07-12 12:06:12 -04:00 committed by GitHub
parent 6534788a41
commit 2582f43797
1 changed files with 1 additions and 1 deletions

View File

@ -220,7 +220,7 @@ function dataset:__init(...)
if clsLength == 0 then if clsLength == 0 then
error('Class has zero samples: ' .. self.classes[i]) error('Class has zero samples: ' .. self.classes[i])
else else
self.classList[i] = torch.linspace(runningIndex + 1, runningIndex + clsLength, clsLength):long() -- self.classList[i] = torch.linspace(runningIndex + 1, runningIndex + clsLength, clsLength):long()
self.classList[i] = torch.range(runningIndex + 1, runningIndex + clsLength):long() self.classList[i] = torch.range(runningIndex + 1, runningIndex + clsLength):long()
self.imageClass[{{runningIndex + 1, runningIndex + clsLength}}]:fill(i) self.imageClass[{{runningIndex + 1, runningIndex + clsLength}}]:fill(i)
end end