mirror of
https://github.com/wassname/ray.git
synced 2026-07-15 11:25:40 +08:00
Cleaning up remaining Local Mode Code (#7865)
This commit is contained in:
@@ -69,10 +69,6 @@ def free(object_ids, local_only=False, delete_creating_tasks=False):
|
||||
raise TypeError("Attempting to call `free` on the value {}, "
|
||||
"which is not an ray.ObjectID.".format(object_id))
|
||||
|
||||
if ray.worker._mode() == ray.worker.LOCAL_MODE:
|
||||
worker.local_mode_manager.free(object_ids)
|
||||
return
|
||||
|
||||
worker.check_connected()
|
||||
with profiling.profile("ray.free"):
|
||||
if len(object_ids) == 0:
|
||||
|
||||
Reference in New Issue
Block a user