(self)
return tf.test.gpu_device_name() != ''
Returns a boolean value representing whether the current device has a GPU or not

        :return: Whether the current device has a GPU or not (bool)
Returns a boolean value representing whether the current device has a GPU or not
Returns a boolean value representing whether the current device has a GPU or not
def is_gpu_available(self):
        '''
        Returns a boolean value representing whether the current device has a GPU or not

        :return: Whether the current device has a GPU or not (bool)
        '''
        return tf.test.gpu_device_name() != ''
def is_gpu_available ( self ) : return tf . test . gpu_device_name ( ) != ''