tf.config.list_physical_devices

Return a list of physical devices visible to the host runtime.

Used in the notebooks

Used in the guide Used in the tutorials

Physical devices are hardware devices present on the host machine. By default all discovered CPU and GPU devices are considered visible.

This API allows querying the physical hardware resources prior to runtime initialization. Thus, giving an opportunity to call any additional configuration APIs. This is in contrast to