tfm.optimization.math.isinf

Return True if x is a positive or negative infinity, and False otherwise.