Skip to content

Commit

Permalink
Remove unused variables/functions to fix luacheck warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Amos committed May 8, 2016
1 parent b11910b commit 85d7375
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions training/dataset.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
require 'torch'
torch.setdefaulttensortype('torch.FloatTensor')
local ffi = require 'ffi'
local dir = require 'pl.dir'
local argcheck = require 'argcheck'
require 'sys'
require 'xlua'
Expand Down Expand Up @@ -96,15 +95,13 @@ function dataset:__init(...)
print('finding class names')
self.classes = {}
local classPaths = tds.Hash()
local classToIdx = tds.Hash()
if self.forceClasses then
print('Adding forceClasses class names')
for k,v in pairs(self.forceClasses) do
self.classes[k] = v
classPaths[k] = tds.Hash()
end
end
local function tableFind(t, o) for k,v in pairs(t) do if v == o then return k end end end
-- loop over each paths folder, get list of unique class names,
-- also store the directory paths per class
-- for each class,
Expand Down

0 comments on commit 85d7375

Please sign in to comment.