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

Function float2half

include/half.hpp:1064–1067  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1062 /// \exception FE_UNDERFLOW on underflows
1063 /// \exception FE_INEXACT if value had to be rounded
1064 template<std::float_round_style R,typename T> unsigned int float2half(T value)
1065 {
1066 return float2half_impl<R>(value, bool_type<std::numeric_limits<T>::is_iec559&&sizeof(typename bits<T>::type)==sizeof(T)>());
1067 }
1068
1069 /// Convert integer to half-precision floating-point.
1070 /// \tparam R rounding mode to use

Callers 3

Cuda>Method · 0.85
fusedSynchHalfMethod · 0.85
synchHalfMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected