20.02
|
#include <FloatingPointConverter.hpp>
Static Public Member Functions | |
static void | ConvertFloat32To16 (const float *srcFloat32Buffer, size_t numElements, void *dstFloat16Buffer) |
Converts a buffer of FP32 values to FP16, and stores in the given dstFloat16Buffer. More... | |
static void | ConvertFloat16To32 (const void *srcFloat16Buffer, size_t numElements, float *dstFloat32Buffer) |
static void | ConvertFloat32ToBFloat16 (const float *srcFloat32Buffer, size_t numElements, void *dstBFloat16Buffer) |
static void | ConvertBFloat16ToFloat32 (const void *srcBFloat16Buffer, size_t numElements, float *dstFloat32Buffer) |
Definition at line 13 of file FloatingPointConverter.hpp.
|
static |
Definition at line 61 of file FloatingPointConverter.cpp.
References BFloat16::ToFloat32().
Referenced by BOOST_AUTO_TEST_CASE(), BFloat16Decoder::Get(), and BFloat16Encoder::Get().
|
static |
Definition at line 31 of file FloatingPointConverter.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), RefConvertFp16ToFp32Workload::Execute(), NeonConvertFp16ToFp32Workload::Execute(), Float16ToFloat32::Func(), Float16Decoder::Get(), and Float16Encoder::Get().
|
static |
Converts a buffer of FP32 values to FP16, and stores in the given dstFloat16Buffer.
dstFloat16Buffer should be (numElements * 2) in size
Definition at line 16 of file FloatingPointConverter.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), RefConvertFp32ToFp16Workload::Execute(), NeonConvertFp32ToFp16Workload::Execute(), Float32ToFloat16::Func(), and Float16Encoder::Set().
|
static |
Definition at line 46 of file FloatingPointConverter.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), and BFloat16Encoder::Set().