You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am running some threads but I can't get the string split method to work, the method doesn't exist in the threads but it does work normally.
The below code prints "string" for each thread however if I add the line which is currently commented out it throws the error;
donkeys.lua:16: attempt to call method 'split' (a nil value)
donkeys = Threads(
params.nThreads,
function(idx)
require "torch"
require "string"
tid = idx -- Thread id
print(string.format("Initialized thread with id : %d.", did))
eg = "x,y,z"
print(type(eg))
--print(eg:split(","))
end
)
end
The text was updated successfully, but these errors were encountered:
I am running some threads but I can't get the string split method to work, the method doesn't exist in the threads but it does work normally.
The below code prints "string" for each thread however if I add the line which is currently commented out it throws the error;
The text was updated successfully, but these errors were encountered: