ArmNN
 24.08
Float16Encoder Class Reference

#include <BaseIterator.hpp>

Inheritance diagram for Float16Encoder:
[legend]
Collaboration diagram for Float16Encoder:
[legend]

Public Member Functions

 Float16Encoder (Half *data)
 
 Float16Encoder ()
 
void Set (float right) override
 
float Get () const override
 
- Public Member Functions inherited from TypedIterator< Half, Encoder< float > >
 TypedIterator (Half *data=nullptr)
 
void Reset (void *data) override
 
TypedIteratoroperator++ () override
 
TypedIteratoroperator+= (const unsigned int increment) override
 
TypedIteratoroperator-= (const unsigned int increment) override
 
TypedIteratoroperator[] (const unsigned int index) override
 
- Public Member Functions inherited from Encoder< float >
 Encoder ()
 
virtual ~Encoder ()
 
virtual float Get () const=0
 
- Public Member Functions inherited from BaseIterator
 BaseIterator ()
 
virtual ~BaseIterator ()
 

Additional Inherited Members

- Protected Attributes inherited from TypedIterator< Half, Encoder< float > >
Halfm_Iterator
 
Halfm_Start
 

Detailed Description

Definition at line 582 of file BaseIterator.hpp.

Constructor & Destructor Documentation

◆ Float16Encoder() [1/2]

Float16Encoder ( Half data)
inline

Definition at line 585 of file BaseIterator.hpp.

586  : TypedIterator(data) {}

◆ Float16Encoder() [2/2]

Float16Encoder ( )
inline

Definition at line 588 of file BaseIterator.hpp.

589  : Float16Encoder(nullptr) {}

Member Function Documentation

◆ Get()

float Get ( ) const
inlineoverride

Definition at line 596 of file BaseIterator.hpp.

597  {
598  float val = 0.f;
600  return val;
601  }

References FloatingPointConverter::ConvertFloat16To32(), and TypedIterator< Half, Encoder< float > >::m_Iterator.

◆ Set()

void Set ( float  right)
inlineoverridevirtual

The documentation for this class was generated from the following file:
armnn::Float16Encoder::Float16Encoder
Float16Encoder()
Definition: BaseIterator.hpp:588
armnn::TypedIterator< Half, Encoder< float > >::m_Iterator
Half * m_Iterator
Definition: BaseIterator.hpp:107
armnn::TypedIterator< Half, Encoder< float > >::TypedIterator
TypedIterator(Half *data=nullptr)
Definition: BaseIterator.hpp:68
armnnUtils::FloatingPointConverter::ConvertFloat16To32
static void ConvertFloat16To32(const void *srcFloat16Buffer, size_t numElements, float *dstFloat32Buffer)
Definition: FloatingPointConverter.cpp:43
armnnUtils::FloatingPointConverter::ConvertFloat32To16
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.
Definition: FloatingPointConverter.cpp:17