MCPcopy Create free account
hub / github.com/apache/singa / half2float

Function half2float

include/half.hpp:1303–1306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1301 /// \param value half-precision value to convert
1302 /// \return floating-point value
1303 template<typename T> T half2float(unsigned int value)
1304 {
1305 return half2float_impl(value, T(), bool_type<std::numeric_limits<T>::is_iec559&&sizeof(typename bits<T>::type)==sizeof(T)>());
1306 }
1307
1308 /// Convert half-precision floating-point to integer.
1309 /// \tparam R rounding mode to use

Callers 3

Cuda>Method · 0.85
fusedSynchHalfMethod · 0.85
synchHalfMethod · 0.85

Calls 1

half2float_implFunction · 0.85

Tested by

no test coverage detected