Functions
InferenceEngine::PrecisionUtils Namespace Reference

Namespace for precision utilities. More...

Functions

ie_fp16 f32tof16 (float x)
 Converts a single-precision floating point value to a half-precision floating poit value. More...
 
float f16tof32 (ie_fp16 x)
 Convers a half-precision floating point value to a single-precision floating point value. More...
 
void f16tof32Arrays (float *dst, const ie_fp16 *src, size_t nelem, float scale=1.f, float bias=0.f)
 Converts a half-precision floating point array to single-precision floating point array and applies scale and bias is needed. More...
 
void f32tof16Arrays (ie_fp16 *dst, const float *src, size_t nelem, float scale=1.f, float bias=0.f)
 Converts a single-precision floating point array to a half-precision floating point array and applies scale and bias if needed. More...
 
template<class OutT , class InT , typename std::enable_if< std::is_integral< OutT >::value &&std::is_integral< InT >::value &&std::is_signed< InT >::value &&!std::is_same< OutT, InT >::value >::type * = nullptr>
OutT saturate_cast (const InT &value)
 Converts one integral type to another saturating the result if the source value doesn't fit into destination type range. More...
 
template<class InT >
InT saturate_cast (const InT &value)
 Converts one integral type to another saturating the result if the source value doesn't fit into destination type range. More...
 

Detailed Description

Namespace for precision utilities.