Skip to content

Commit 4ebe222

Browse files
authored
Merge pull request #24 from HeinrichHartmann/pr-no-torch
Fix #23: Use type instead of torch.type
2 parents 2bc6460 + df28003 commit 4ebe222

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

init.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ end
2525
function paths.files(s, f)
2626
local d = paths.dir(s)
2727
local n = 0
28-
if torch.type(f) == 'string' then
28+
if type(f) == 'string' then
2929
local pattern = f
3030
f = function(file) return file:find(pattern) end
31-
elseif f and torch.type(f) ~= 'function' then
31+
elseif f and type(f) ~= 'function' then
3232
error("Expecting optional arg 2 to be function or string. Got : "..torch.type(f))
3333
end
3434
f = f or function(file) return true end

0 commit comments

Comments
 (0)