b331b9f29062a0e888dafc7a7d19ca8fa53286c1,invesalius/segmentation/brain/utils.py,,get_plaidml_devices,#Any#,1

Before Change


                return device
        for device in devices:
            if b"opencl" in device.description.lower():
                return device
    for device in devices:
        if b"llvm" in device.description.lower():
            return device

After Change


        out_devices.append((points, device))

    out_devices.sort(reverse=True)
    return {device.description.decode("utf8"): device.id.decode("utf8") for points, device in out_devices }
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: invesalius/invesalius3
Commit Name: b331b9f29062a0e888dafc7a7d19ca8fa53286c1
Time: 2020-03-23
Author: totonixsame@gmail.com
File Name: invesalius/segmentation/brain/utils.py
Class Name:
Method Name: get_plaidml_devices


Project Name: pantsbuild/pants
Commit Name: 3be90c2f31a419ef96c65434d17c99b4a56043ef
Time: 2018-08-07
Author: ericarellano@me.com
File Name: src/python/pants/backend/python/python_artifact.py
Class Name: PythonArtifact
Method Name: _compute_fingerprint


Project Name: tensorflow/models
Commit Name: 730035d61822f18043bf8f2821b381da64c34b2c
Time: 2020-02-13
Author: alexgorban@users.noreply.github.com
File Name: research/attention_ocr/python/demo_inference.py
Class Name:
Method Name: run