a543f10c1a249f74d6fd1941597b148d249f6a65,setup.py,,,#,43

Before Change


    if not slim_package:
        // For linux wth no GPU, we install the Intel optimized version of TensorFlow
        if sys.platform == "linux" or sys.platform == "linux2":
            subprocess.check_call(["pip install "
                                   "https://storage.googleapis.com/intel-optimized-tensorflow/tensorflow-1.12.0-cp35-cp35m-linux_x86_64.whl"],
                                  shell=True)
        install_requires.append("tensorflow>=1.9.0")
    extras["mxnet"] = ["mxnet-mkl>=1.3.0"]
else:
    if not slim_package:

After Change


if not using_GPU:
    if not slim_package:
        // For linux wth no GPU, we install the Intel optimized version of TensorFlow
        if sys.platform == "linux" or sys.platform == "linux2":
            install_requires.append("intel-tensorflow>=1.9.0")
        else:
            install_requires.append("tensorflow>=1.9.0")
    extras["mxnet"] = ["mxnet-mkl>=1.3.0"]
else:
    if not slim_package:
        install_requires.append("tensorflow-gpu>=1.9.0")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: NervanaSystems/coach
Commit Name: a543f10c1a249f74d6fd1941597b148d249f6a65
Time: 2019-04-03
Author: shadi.endrawis@intel.com
File Name: setup.py
Class Name:
Method Name:


Project Name: ray-project/ray
Commit Name: d6f84bb0721516184b596b4281c2d31355a48dbf
Time: 2020-06-27
Author: sven@anyscale.io
File Name: python/ray/setup-dev.py
Class Name:
Method Name: do_link


Project Name: deepmipt/DeepPavlov
Commit Name: 405fa5b1a6f4dfeb9d4594526605a6345fe5663c
Time: 2018-07-24
Author: yoptar@gmail.com
File Name: utils/pip_wrapper/pip_wrapper.py
Class Name:
Method Name: install