tfm.optimization.math.isnan

Return True if x is a NaN (not a number), and False otherwise.