ada58abcd92cd7b38cf1c0ee1525d52e388558f9,python/ray/tests/test_object_spilling.py,,test_spill_objects_manually_from_workers,#Any#,68

Before Change


        ray.experimental.force_restore_spilled_objects([ref])
        assert np.array_equal(ray.get(ref), arr)

    ray.get([_worker.remote() for _ in range(50)])


def test_spill_objects_manually_with_workers(shutdown_only):

After Change


        return ref

    // Create objects of more than 200 MiB.
    replay_buffer = [ray.get(_worker.remote()) for _ in range(25)]
    values = {ref: np.copy(ray.get(ref)) for ref in replay_buffer}
    // Randomly sample objects.
    for _ in range(100):
        ref = random.choice(replay_buffer)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 4

Instances


Project Name: ray-project/ray
Commit Name: ada58abcd92cd7b38cf1c0ee1525d52e388558f9
Time: 2020-10-02
Author: swang@cs.berkeley.edu
File Name: python/ray/tests/test_object_spilling.py
Class Name:
Method Name: test_spill_objects_manually_from_workers


Project Name: ray-project/ray
Commit Name: 7a78f4e95960bf8560b0547802f171e2b40e4f6b
Time: 2021-01-26
Author: zhisbug@users.noreply.github.com
File Name: python/ray/util/collective/tests/util.py
Class Name:
Method Name: create_collective_workers


Project Name: ray-project/ray
Commit Name: 443339ab195af383c886fc352bd70db50f481127
Time: 2020-12-02
Author: swang@cs.berkeley.edu
File Name: python/ray/tests/test_reference_counting.py
Class Name:
Method Name: test_feature_flag


Project Name: ray-project/ray
Commit Name: 9e68b77796c1478973f5236adfc09f3399721659
Time: 2020-10-28
Author: mannyv@gmail.com
File Name: rllib/evaluation/worker_set.py
Class Name: WorkerSet
Method Name: stop


Project Name: ray-project/ray
Commit Name: dd63178e91dbe77b79be8d38bdf67501ceee1d7c
Time: 2020-04-10
Author: rliaw@berkeley.edu
File Name: python/ray/util/sgd/torch/torch_trainer.py
Class Name: TorchTrainer
Method Name: _start_workers