def is_floating ( self ) : return ( self . is_numpy_compatible and np . issubdtype ( self . as_numpy_dtype , np . floating ) ) or self . base_dtype == bfloat16
how to identify if variable is not a factoral in python
Returns whether this is a ( non - quantized real ) floating point type .
def is_floating(self):
        """Returns whether this is a (non-quantized, real) floating point type."""
        return (
            self.is_numpy_compatible and np.issubdtype(self.as_numpy_dtype, np.floating)
        ) or self.base_dtype == bfloat16