mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 21:29:53 +08:00
Ref count objects created with ray.put (#5590)
* wip * add weakref option * tune util * test ref * doc * fix tests
This commit is contained in:
@@ -19,7 +19,7 @@ class TestUnreconstructableErrors(unittest.TestCase):
|
||||
ray.shutdown()
|
||||
|
||||
def testDriverPutEvictedCannotReconstruct(self):
|
||||
x_id = ray.put(np.zeros(1 * 1024 * 1024))
|
||||
x_id = ray.put(np.zeros(1 * 1024 * 1024), weakref=True)
|
||||
ray.get(x_id)
|
||||
for _ in range(20):
|
||||
ray.put(np.zeros(10 * 1024 * 1024))
|
||||
|
||||
Reference in New Issue
Block a user