Use std::isnan instead of self-comparison. (#18021)
authorEdward Yang <ezyang@fb.com>
Thu, 14 Mar 2019 22:25:35 +0000 (15:25 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 14 Mar 2019 22:41:36 +0000 (15:41 -0700)
commitd3e3b246ea02e5d5ad76cb8a66a95e544a08a40c
tree80b7625396578e880d2c58804678027a8b30460d
parentb263a2d8a143dccd8c6975153c857a894f2d552d
Use std::isnan instead of self-comparison. (#18021)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/18021
ghimport-source-id: 03423ba47ba5900c2b400c4457b148147ce8b35e

Stack:
* **#18021 Use std::isnan instead of self-comparison.**

Signed-off-by: Edward Z. Yang <ezyang@fb.com>
Reviewed By: soumith

Differential Revision: D14460699

fbshipit-source-id: d8feb7f3f0e93996bd1b4f4aea163548b1d12437
aten/src/ATen/NumericUtils.h [new file with mode: 0644]
aten/src/ATen/cpu/vec256/vec256_base.h
aten/src/ATen/native/Sorting.cpp
aten/src/ATen/native/cpu/TensorCompareKernel.cpp