is_float

tfsnippet.utils.is_float(x)

Test whether or not x is a Python or NumPy float.

Parameters:x – The object to be tested.
Returns:A boolean indicating whether x is a Python or NumPy float.
Return type:bool