From 2582f4379715fa8fef27053fa964c624848097db Mon Sep 17 00:00:00 2001 From: Brandon Amos Date: Tue, 12 Jul 2016 12:06:12 -0400 Subject: [PATCH] dataset.lua: Comment out unused torch.linspace. --- training/dataset.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/training/dataset.lua b/training/dataset.lua index b5f14d8..7e13e0c 100644 --- a/training/dataset.lua +++ b/training/dataset.lua @@ -220,7 +220,7 @@ function dataset:__init(...) if clsLength == 0 then error('Class has zero samples: ' .. self.classes[i]) 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.imageClass[{{runningIndex + 1, runningIndex + clsLength}}]:fill(i) end