BitStream
bitstream::serialize_traits< half_precision > Struct Reference

A trait used to serialize a single-precision float as half-precision. More...

#include <quantization_traits.h>

Static Public Member Functions

template<typename Stream >
static utility::is_writing_t< Stream > serialize (Stream &stream, in< float > value) noexcept
 
template<typename Stream >
static utility::is_reading_t< Stream > serialize (Stream &stream, out< float > value) noexcept
 

Detailed Description

A trait used to serialize a single-precision float as half-precision.

Member Function Documentation

◆ serialize() [1/2]

template<typename Stream >
static utility::is_writing_t<Stream> bitstream::serialize_traits< half_precision >::serialize ( Stream &  stream,
in< float >  value 
)
inlinestaticnoexcept

◆ serialize() [2/2]

template<typename Stream >
static utility::is_reading_t<Stream> bitstream::serialize_traits< half_precision >::serialize ( Stream &  stream,
out< float >  value 
)
inlinestaticnoexcept

The documentation for this struct was generated from the following file: