f2889ca90ddd60b19070b7e8fbcb0867ae4c47ed,setup.py,,,#,25

Before Change


    if tf_be and "mkl" == tf_be.lower():
        if py3_ver == 5 or py3_ver == 6:
            tf_mkl_url_real = tf_mkl_url.format(tf_version, py3_ver, py3_ver)
            subprocess.call([sys.executable, "-m", "pip", "install", tf_mkl_url_real])
    elif tf_be and "gpu" == tf_be.lower() and gpu_available:
        chosen_tf = "tensorflow-gpu=={}".format(tf_version)

for r in install_requirements:

After Change


// Tensorflow version (make sure CPU/MKL/GPU versions exist before changing)
for r in install_requirements:
    if r.startswith("tensorflow=="):
        tf_version = r.split("==")[1]

// default TF is CPU
chosen_tf = "tensorflow=={}".format(tf_version)
// check system is linux for MKL/GPU backends
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: NervanaSystems/nlp-architect
Commit Name: f2889ca90ddd60b19070b7e8fbcb0867ae4c47ed
Time: 2019-05-01
Author: peter.izsak@intel.com
File Name: setup.py
Class Name:
Method Name:


Project Name: chainer/chainercv
Commit Name: 93fde518ce45a1373c4b635c15e25312b2cc3a0f
Time: 2017-03-10
Author: yuyuniitani@gmail.com
File Name: chainercv/datasets/cub/cub_utils.py
Class Name:
Method Name: get_cub


Project Name: AlexEMG/DeepLabCut
Commit Name: cb560e17278530c14b74b06fa3f3c718e25c9616
Time: 2019-09-20
Author: amathis@fas.harvard.edu
File Name: examples/testscript.py
Class Name:
Method Name: