I noticed that it doesn’t seem to be possible to decorate partial functions with ray.remote
(at least in ray 1.6.0):
import functools
import ray
ray.init()
def foo(x, y):
return x+y
foo2 = ray.remote(foo) # this works
result = ray.get([foo2.remote(x, y) for x, y in zip(range(5), range(5))])
foo3 = ray.remote(functools.partial(foo, y=1)) # this raises a TypeError
Is there some design reason as to why this is the case?