We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2bc6460 + df28003 commit 4ebe222Copy full SHA for 4ebe222
init.lua
@@ -25,10 +25,10 @@ end
25
function paths.files(s, f)
26
local d = paths.dir(s)
27
local n = 0
28
- if torch.type(f) == 'string' then
+ if type(f) == 'string' then
29
local pattern = f
30
f = function(file) return file:find(pattern) end
31
- elseif f and torch.type(f) ~= 'function' then
+ elseif f and type(f) ~= 'function' then
32
error("Expecting optional arg 2 to be function or string. Got : "..torch.type(f))
33
end
34
f = f or function(file) return true end
0 commit comments