Python - tensorflow.DeviceSpec.device_type Attribute
TensorFlow is open-source Python library designed by Google to develop Machine Learning models and deep learning  neural networks. device_type is used to get the device type of DeviceSpec. Syntax: tensorflow.DeviceSpec.device_type Returns: It returns the device type. Example 1: Python3 # Importing