torch.isclose
torch.isclose(input, other, rtol=1e-05, atol=1e-08, equal_nan=False) -> Tensor
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:
  \lvert \text{input} - \text{other} \rvert \leq \texttt{atol} +
  \texttt{rtol} \times \lvert \text{other} \rvert

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.
Parameters:
      * input (Tensor) -- first tensor to compare
  * **other** (*Tensor*) -- second tensor to compare

  * **atol** (*float**, **optional*) -- absolute tolerance.
    Default: 1e-08

  * **rtol** (*float**, **optional*) -- relative tolerance.
    Default: 1e-05

  * **equal_nan** (*bool**, **optional*) -- if "True", then two
