parameters: (self, device_type=None)
return_statement: return self._physical_devices
docstring: List local devices visible to the system.
  
      This API allows a client to query the devices before they have been
      initialized by the eager runtime. Additionally a user can filter by device
      type, to get only CPUs or GPUs.
  
      Args:
        device_type: Optional device type to limit results to
  
      Returns:
        List of PhysicalDevice objects.
docstring_summary: List local devices visible to the system.
docstring_tokens: List local devices visible to the system .
function: def list_physical_devices(self, device_type=None):
      """List local devices visible to the system.
  
      This API allows a client to query the devices before they have been
      initialized by the eager runtime. Additionally a user can filter by device
      type, to get only CPUs or GPUs.
  
      Args:
        device_type: Optional device type to limit results to
  
      Returns:
        List of PhysicalDevice objects.
      """
      self._initialize_physical_devices()
  
      if device_type is not None:
        return [
            d for d in self._physical_devices
            if device_type is None or device_type == d.device_type
        ]
  
      return self._physical_devices
function_tokens: def list_physical_devices ( self , device_type = None ) : self . _initialize_physical_devices ( ) if device_type is not None : return [ d for d in self . _physical_devices if device_type is None or device_type == d . device_type ] return self . _physical_devices