Move isnan to C++ (#15722)
authorPeter Goldsborough <psag@fb.com>
Tue, 8 Jan 2019 18:26:32 +0000 (10:26 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 8 Jan 2019 18:42:33 +0000 (10:42 -0800)
commit8232bd526fbf6b3720378e8d5a4ed93f284a4812
tree4925a0b5b8d1bf90ce1ce4e6ddf0f7ad5dd6ae2f
parent461dc9a28b132f032e1ae81bfdab27e9d3770fe9
Move isnan to C++ (#15722)

Summary:
Wanted to use `Tensor.isnan` in C++, figured it'd be nice to have, so I made it into a tiny native function.

gchanan ezyang apaszke
Pull Request resolved: https://github.com/pytorch/pytorch/pull/15722

Differential Revision: D13591315

Pulled By: goldsborough

fbshipit-source-id: a78bd22101fde87a0257f759b9bfcf3b4208f5fa
aten/src/ATen/native/TensorCompare.cpp
aten/src/ATen/native/native_functions.yaml
test/cpp/api/integration.cpp
torch/functional.py