pytorch
f111f1b1 - Suppress implicit int-float conversion warning in ROCm build (#29604)

Commit
5 years ago
Suppress implicit int-float conversion warning in ROCm build (#29604) Summary: ``` c10/util/Half.h:467:37: warning: implicit conversion from 'long' to 'double' changes value from 9223372036854775807 to 9223372036854775808 [-Wimplicit-int-float-conversion] return f < limit::lowest() || f > limit::max(); ~ ^~~~~~~~~~~~ c10/util/Half.h:497:41: note: in instantiation of function template specialization 'c10::overflows<long, double>' requested here if (!std::is_same<To, bool>::value && overflows<To, From>(f)) { ``` Pull Request resolved: https://github.com/pytorch/pytorch/pull/29604 Differential Revision: D18440713 Pulled By: bddppq fbshipit-source-id: f059b4e37e90fa84308be52ff5e1070ffd04031e
Author
Parents
Loading