22.11
|
#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 ARMNN_ASSERT, and BFloat16::ToFloat32().
Referenced by armnn::ConvertBf16ToFp32Weight(), BFloat16Decoder::DecodeTensor(), NeonConvertBf16ToFp32Workload::Execute(), RefConvertBf16ToFp32Workload::ExecuteAsync(), BFloat16ToFloat32::Func(), BFloat16Decoder::Get(), BFloat16Encoder::Get(), and armnn::RevertConstantWeightsToFP32().
|
static |
Definition at line 31 of file FloatingPointConverter.cpp.
References ARMNN_ASSERT.
Referenced by armnn::AttemptBackendAssignment(), Float16Decoder::DecodeTensor(), NeonConvertFp16ToFp32Workload::Execute(), RefConvertFp16ToFp32Workload::ExecuteAsync(), Float16ToFloat32::Func(), Float16Decoder::Get(), Float16Encoder::Get(), and ConvertConstDequantisationLayersToConstLayersImpl::Run().
|
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.
References ARMNN_ASSERT.
Referenced by NeonConvertFp32ToFp16Workload::Execute(), RefConvertFp32ToFp16Workload::ExecuteAsync(), Float32ToFloat16::Func(), and Float16Encoder::Set().
|
static |
Definition at line 46 of file FloatingPointConverter.cpp.
References ARMNN_ASSERT.
Referenced by armnn::optimizations::ConvertWeight(), NeonConvertFp32ToBf16Workload::Execute(), RefConvertFp32ToBf16Workload::ExecuteAsync(), Float32ToBFloat16::Func(), FuseConvertFp32ToBf16IntoConstLayers::Run(), and BFloat16Encoder::Set().