[rllib] Replace ray.get() with ray_get_and_free() to optimize memory usage (#4586)

This commit is contained in:
Eric Liang
2019-04-17 20:30:03 -04:00
committed by GitHub
parent 20c4c16891
commit 6848dfd179
19 changed files with 82 additions and 21 deletions
+3
View File
@@ -30,6 +30,9 @@ def free(object_ids, local_only=False, delete_creating_tasks=False):
"""
worker = ray.worker.get_global_worker()
if ray.worker._mode() == ray.worker.LOCAL_MODE:
return
if isinstance(object_ids, ray.ObjectID):
object_ids = [object_ids]