MCPcopy Create free account
hub / github.com/OpenNMT/CTranslate2 / half

Method half

include/half_float/half.hpp:2069–2069  ·  view source on GitHub ↗

Conversion constructor. \param rhs float to convert \exception FE_OVERFLOW, ...UNDERFLOW, ...INEXACT according to rounding

Source from the content-addressed store, hash-verified

2067 /// \param rhs float to convert
2068 /// \exception FE_OVERFLOW, ...UNDERFLOW, ...INEXACT according to rounding
2069 explicit half(float rhs) : data_(static_cast<detail::uint16>(detail::float2half<round_style>(rhs))) {}
2070
2071 /// Conversion to single-precision.
2072 /// \return single precision value representing expression value

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected