9a8edeb83017782307050e5860243ef69082b393,talos/utils/gpu_utils.py,,force_cpu,#,44

Before Change



    config = tf.ConfigProto(device_count={"GPU": 0})
    session = tf.Session(config=config)
    K.set_session(session)

After Change



    config = tf.compat.v1.ConfigProto(device_count={"GPU": 0})
    session = tf.compat.v1.Session(config=config)
    tf.compat.v1.keras.backend.set_session(session)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: autonomio/talos
Commit Name: 9a8edeb83017782307050e5860243ef69082b393
Time: 2020-01-25
Author: c0L0RC0D3R1976
File Name: talos/utils/gpu_utils.py
Class Name:
Method Name: force_cpu


Project Name: streamlit/streamlit
Commit Name: 8d7f4a166b84dba1d978febcb1fdeaff385b055f
Time: 2019-10-01
Author: rhone.j@gmail.com
File Name: examples/mnist-cnn.py
Class Name:
Method Name:


Project Name: autonomio/talos
Commit Name: 9a8edeb83017782307050e5860243ef69082b393
Time: 2020-01-25
Author: c0L0RC0D3R1976
File Name: talos/utils/gpu_utils.py
Class Name:
Method Name: parallel_gpu_jobs