tensorflow_probability/python/optimizer/linesearch/hager_zhang.py
def _to_str(x):
  """Converts a bool tensor to a string with True/False values."""
  x = tf.convert_to_tensor(value=x)
  if x.dtype == tf.bool:
    return tf.where(x, tf.fill(x.shape, 'True'), tf.fill(x.shape, 'False'))
  return x
def _to_str(x):
  """Converts a bool tensor to a string with True/False values."""
  x = tf.convert_to_tensor(value=x)
  if x.dtype == tf.bool:
    return tf.where(x, tf.fill(x.shape, 'True'), tf.fill(x.shape, 'False'))
  return x
def _to_str ( x ) : x = tf . convert_to_tensor ( value = x ) if x . dtype == tf . bool : return tf . where ( x , tf . fill ( x . shape , 'True' ) , tf . fill ( x . shape , 'False' ) ) return x
Converts a bool tensor to a string with True/False values.
Converts a bool tensor to a string with True / False values .