I'm trying to run a Deep Neural Net segmentation program, written in Python/Tensorflow running under Kaggle. I'm trying to understand how to control the device used in background runs [SAVE VERSION]. The first step is being able to see what device(s) I am running on -- CPU, GPU or TPU. How can my Python program determine which device(s) are currently in use?