how to check gpu is getting used in tensorflow jupyter code example Example: tensorflow check gpu tf.config.list_physical_devices('GPU')