836c5d5a910920a5c7b253996151632628e3cf88,python/ray/experimental/dynamic_resources.py,,set_resource,#Any#Any#Any#,4

Before Change


        node_id_obj = ray.NodeID(ray.utils.hex_to_binary(node_id))
    else:
        node_id_obj = ray.NodeID.nil()
    if (capacity < 0) or (capacity != int(capacity)):
        raise ValueError(
            "Capacity {} must be a non-negative integer.".format(capacity))
    return ray.worker.global_worker.core_worker.set_resource(
        resource_name, capacity, node_id_obj)

After Change

def set_resource(resource_name, capacity, node_id=None):
    raise DeprecationWarning(
        "Dynamic custom resources are deprecated. Consider using placement "
        "groups instead (docs.ray.io/en/master/placement-group.html). You "
        "can also specify resources at Ray start time with the "resources" "
        "field in the cluster autoscaler.")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: ray-project/ray
Commit Name: 836c5d5a910920a5c7b253996151632628e3cf88
Time: 2020-12-28
Author: ekhliang@gmail.com
File Name: python/ray/experimental/dynamic_resources.py
Class Name:
Method Name: set_resource


Project Name: ray-project/ray
Commit Name: 0c3b9ebeef167a9eeb6eed9fb18f328ecb5a3c6f
Time: 2020-07-30
Author: rliaw@berkeley.edu
File Name: python/ray/tune/session.py
Class Name:
Method Name: make_checkpoint_dir


Project Name: ray-project/ray
Commit Name: 0c3b9ebeef167a9eeb6eed9fb18f328ecb5a3c6f
Time: 2020-07-30
Author: rliaw@berkeley.edu
File Name: python/ray/tune/session.py
Class Name:
Method Name: save_checkpoint