Returns a new tensor with boolean elements representing if each element of
input is "close" to the corresponding element of other.
Closeness is defined as:
where input and other are finite. Where input
and/or other are nonfinite they are close if and only if
they are equal, with NaNs being considered equal to each other when
equal_nan is TRUE.