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
Hi, this looks like a cool project - I'm looking forward to trying it more extensively.
In a few other distributed libraries (e.g. dask and ray) you can pass objects around indirectly just by re-submitting the future. E.g. something like:
deffoo(x):
returnx+1defbar(x):
returnx**2# get the first futuref1=pool.submit(foo, 2)
# submit its answer by referencef2=pool.submit(bar, f1)
# get the final answer, without ever gathering f1.result()f2.result()
# 9
I.e. the workers communicate the result of f1 directly without it passing through the main process, which can be a big efficiency saving for large return objects.
I guess my questions are:
I'm not totally sure how torcpy is designed, so would it still be beneficial here? and if so, how easy?
Hi, this looks like a cool project - I'm looking forward to trying it more extensively.
In a few other distributed libraries (e.g.
daskandray) you can pass objects around indirectly just by re-submitting the future. E.g. something like:I.e. the workers communicate the result of
f1directly without it passing through the main process, which can be a big efficiency saving for large return objects.I guess my questions are:
torcpyis designed, so would it still be beneficial here? and if so, how easy?