7b609ca21123607ece68f9dcdc3c1a5cdeccfdaf,python/ray/worker.py,,get_gpu_ids,#,430
Before Change
A list of GPU IDs.
if _mode() == LOCAL_MODE:
raise Exception("ray.get_gpu_ids() currently does not work in LOCAL "
"MODE.")
all_resource_ids = global_worker.core_worker.resource_ids()
assigned_ids = [
resource_id for resource_id, _ in all_resource_ids.get("GPU", [])
After Change
A list of GPU IDs.
if _mode() == LOCAL_MODE:
raise RuntimeError("ray.get_gpu_ids() currently does not work in "
"local_mode.")
all_resource_ids = global_worker.core_worker.resource_ids()
assigned_ids = [
resource_id for resource_id, _ in all_resource_ids.get("GPU", [])
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 4
Instances
Project Name: ray-project/ray
Commit Name: 7b609ca21123607ece68f9dcdc3c1a5cdeccfdaf
Time: 2020-03-10
Author: ed.nmi.oakes@gmail.com
File Name: python/ray/worker.py
Class Name:
Method Name: get_gpu_ids
Project Name: ray-project/ray
Commit Name: 7b609ca21123607ece68f9dcdc3c1a5cdeccfdaf
Time: 2020-03-10
Author: ed.nmi.oakes@gmail.com
File Name: python/ray/worker.py
Class Name:
Method Name: get_resource_ids
Project Name: dmlc/dgl
Commit Name: e9440acb06e1ab7a9d2f6f888a092b115da3155c
Time: 2020-03-30
Author: VoVAllen@users.noreply.github.com
File Name: python/dgl/backend/mxnet/tensor.py
Class Name:
Method Name:
Project Name: home-assistant/home-assistant
Commit Name: 89102b5652e32821a2836788100d907488cdfa84
Time: 2014-11-28
Author: Paulus@PaulusSchoutsen.nl
File Name: homeassistant/util.py
Class Name: ThreadPool
Method Name: add_job
Project Name: ray-project/ray
Commit Name: 7b609ca21123607ece68f9dcdc3c1a5cdeccfdaf
Time: 2020-03-10
Author: ed.nmi.oakes@gmail.com
File Name: python/ray/worker.py
Class Name:
Method Name: init