ff120e152a4c9a9664501015d343e6d565bd0b12,theano/gpuarray/__init__.py,,init_dev,#Any#Any#,44

Before Change


    ctx_props = _get_props(name)
    ctx_props["dev"] = dev
    if dev.startswith("cuda"):
        if "cudnn_version" not in ctx_props:
            try:
                ctx_props["cudnn_version"] = dnn.version()
                // 5200 should not print warning with cudnn 5.1 final.

After Change


    // This is for the C headers API
    if pygpu.gpuarray.api_version()[0] < 0:
        raise ValueError("Your installed libgpuarray is too old, please update")
    if init_dev.dnn_version is None and dev.startswith("cuda"):
        try:
            init_dev.dnn_version = dnn.version()
            // 5200 should not print warning with cudnn 5.1 final.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 2

Instances


Project Name: Theano/Theano
Commit Name: ff120e152a4c9a9664501015d343e6d565bd0b12
Time: 2016-12-22
Author: abergeron@gmail.com
File Name: theano/gpuarray/__init__.py
Class Name:
Method Name: init_dev


Project Name: Qiskit/qiskit-aqua
Commit Name: 4f804b0e60cefa3048e0a485510a682f7bbaf604
Time: 2018-10-18
Author: manoel@us.ibm.com
File Name: qiskit_aqua/algorithms/adaptive/qaoa/qaoa.py
Class Name: QAOA
Method Name: init_params


Project Name: Qiskit/qiskit-aqua
Commit Name: 4f804b0e60cefa3048e0a485510a682f7bbaf604
Time: 2018-10-18
Author: manoel@us.ibm.com
File Name: qiskit_aqua/algorithms/adaptive/vqe/vqe.py
Class Name: VQE
Method Name: init_args


Project Name: vatlab/SoS
Commit Name: 2a7e3a42cf5d9ba8024ced6b6ba6eb8748dfd995
Time: 2016-12-09
Author: ben.bog@gmail.com
File Name: sos/actions.py
Class Name: SoS_ExecuteScript
Method Name: run