The default pip installation package for TensorFlow is built for CPUs and is known as tensorflow, whereas the variant built for GPUs is known as the tensorflow-gpu package.
Devices in the TensorFlow system are represented as strings. For example, a single GPU device is represented as /device:GPU:0.