How to run TensorFlow using the CPU instead of GPU in Python

Running TensorFlow using the CPU instead of GPU runs TensorFlow only on the CPU. By default TensorFlow uses available GPU resources to run.

Solution for How to run TensorFlow using the CPU instead of GPU in Python : You can use tenserflow.compat.v1.ConfigProto() to run TensorFlow using the CPU instead of GPU Call tf.compat.v1.ConfigProto(device_count={“GPU”: 0}) to specify a GPU count of 0. Call tf.compat.v1.Session(config=configuration) to create a session using the previous result configuration.


how-to-run-tensorflow-using-the-cpu-instead-of-gpu-in-python