tensorflow_probability/python/internal/dtype_util.py
def is_floating(dtype):
  """Returns whether this is a (non-quantized, real) floating point type."""
  dtype = tf.as_dtype(dtype)
  if hasattr(dtype, 'is_floating'):
    return dtype.is_floating
  return np.issubdtype(np.dtype(dtype), np.float)
def is_floating(dtype):
  """Returns whether this is a (non-quantized, real) floating point type."""
  dtype = tf.as_dtype(dtype)
  if hasattr(dtype, 'is_floating'):
    return dtype.is_floating
  return np.issubdtype(np.dtype(dtype), np.float)
def is_floating ( dtype ) : dtype = tf . as_dtype ( dtype ) if hasattr ( dtype , 'is_floating' ) : return dtype . is_floating return np . issubdtype ( np . dtype ( dtype ) , np . float )
Returns whether this is a (non-quantized, real) floating point type.
Returns whether this is a ( non - quantized real ) floating point type .