(self)
return [device.name for device in local_device_protos
                if device.device_type == 'GPU']
Returns a list of available GPUs on the current device running the program

        :return: List of available GPUs on the current device (list of Strings)
Returns a list of available GPUs on the current device running the program
Returns a list of available GPUs on the current device running the program
def get_available_gpus(self):
        '''
        Returns a list of available GPUs on the current device running the program

        :return: List of available GPUs on the current device (list of Strings)
        '''
        local_device_protos = device_lib.list_local_devices()
        return [device.name for device in local_device_protos
                if device.device_type == 'GPU']
def get_available_gpus ( self ) : local_device_protos = device_lib . list_local_devices ( ) return [ device . name for device in local_device_protos if device . device_type == 'GPU' ]