Skip to content

Commit df28003

Browse files
Fix #23: Use type instead of torch.type
1 parent 2bc6460 commit df28003

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)