Reputation: 412
I know how to call a function with args using dask graph, but I am not able to call a function without any args. This just return a function itself, not a result of call.
dsk = {'res': ask}
dask.get(dsk, 'res')
Could you suggest me how to do it?
Upvotes: 0
Views: 19
Reputation: 412
Solved, it should be called in such a way;
dsk = {'res': (ask,)}
dask.get(dsk, 'res')
as a tuple of function name and empty.
Upvotes: 0