Turn the Half::from_bits into a constexpr function to avoid unresolve… (#17661)
authorDavide Libenzi <dlibenzi@google.com>
Tue, 5 Mar 2019 15:24:27 +0000 (07:24 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 5 Mar 2019 15:31:38 +0000 (07:31 -0800)
commit8420a2025bea0294e67f8058ff4341fcab23ce08
tree55d3d0a3971fbb5df85aa9efeea0e1d0a0dcea75
parent7fc3aa8c49cda3433a2a04e7be504d3dfffbd426
Turn the Half::from_bits into a constexpr function to avoid unresolve… (#17661)

Summary:
…d symbol errors when building in DEBUG mode.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/17661

Differential Revision: D14319610

Pulled By: soumith

fbshipit-source-id: 6c508a37155e29260f403d7174f343aa1ff32385
aten/src/ATen/cuda/NumericLimits.cuh
c10/util/Half-inl.h
c10/util/Half.cpp
c10/util/Half.h