tensorflow_probability/python/internal/distribution_util.py
def _is_integer_like_by_dtype(dt):
  """Helper returning True if dtype.is_integer or is `bool`."""
  if not _is_known_dtype(dt):
    raise TypeError("Unrecognized dtype: {}".format(dt.name))
  return dt.is_integer or dt.base_dtype == tf.bool
def _is_integer_like_by_dtype(dt):
  if not _is_known_dtype(dt):
    raise TypeError("Unrecognized dtype: {}".format(dt.name))
  return dt.is_integer or dt.base_dtype == tf.bool
def _is_integer_like_by_dtype ( dt ) : if not _is_known_dtype ( dt ) : raise TypeError ( "Unrecognized dtype: {}" . format ( dt . name ) ) return dt . is_integer or dt . base_dtype == tf . bool
Helper returning True if dtype.is_integer or is `bool`.
Helper returning True if dtype . is_integer or is bool .