How to enable @ray.remote decorator programmatically

I would like to be able, also for debug purposes and speed of program start, to be able to activate or deactivate ray and therefore the @ray.remote decorator programmatically. Is there a way to do this?

1 Like

Maybe you can try instead of using the decorator, using:

def func(): ...

func = ray.remote(func)

NOTE: this is equivalent to:

def func(...):
1 Like