85197deece837a1f4ffdbbffb72af6028a9b6e32,python/ray/autoscaler/_private/resource_demand_scheduler.py,ResourceDemandScheduler,_infer_legacy_node_resources_if_needed,#ResourceDemandScheduler#Any#,201

Before Change


                ]
                for ip in worker_node_ips:
                    if ip in max_resources_by_ip:
                        self.node_types[NODE_TYPE_LEGACY_WORKER][
                            "resources"] = max_resources_by_ip[ip]
                assert self.node_types[NODE_TYPE_LEGACY_WORKER]["resources"]

After Change


            try:
                head_ip = self.provider.internal_ip(
                    self.provider.non_terminated_nodes({
                        TAG_RAY_NODE_KIND: NODE_KIND_HEAD
                    })[0])
                self.node_types[NODE_TYPE_LEGACY_HEAD]["resources"] = \
                    copy.deepcopy(max_resources_by_ip[head_ip])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: ray-project/ray
Commit Name: 85197deece837a1f4ffdbbffb72af6028a9b6e32
Time: 2020-11-11
Author: ameerh@berkeley.edu
File Name: python/ray/autoscaler/_private/resource_demand_scheduler.py
Class Name: ResourceDemandScheduler
Method Name: _infer_legacy_node_resources_if_needed


Project Name: GPflow/GPflow
Commit Name: 45efebc7488818ac2e34b83f1f3f236ce97e1693
Time: 2019-09-12
Author: sergio.diaz@prowler.io
File Name: gpflow/models/sgpr.py
Class Name: GPRFITC
Method Name: __init__


Project Name: ray-project/ray
Commit Name: 57544b1ff9f97d4da9f64d25c8ea5a3d8d247ffc
Time: 2020-05-11
Author: sven@anyscale.io
File Name: rllib/agents/ddpg/ddpg_torch_model.py
Class Name: DDPGTorchModel
Method Name: __init__