mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 16:13:54 +08:00
Allow Ray API to be used from multiple threads (#2422)
This commit is contained in:
committed by
Robert Nishihara
parent
4b6157ed09
commit
05f485e274
@@ -114,7 +114,6 @@ class RemoteFunction(object):
|
||||
"""An experimental alternate way to submit remote functions."""
|
||||
worker = ray.worker.get_global_worker()
|
||||
worker.check_connected()
|
||||
ray.worker.check_main_thread()
|
||||
kwargs = {} if kwargs is None else kwargs
|
||||
args = ray.signature.extend_args(self._function_signature, args,
|
||||
kwargs)
|
||||
|
||||
Reference in New Issue
Block a user