ArmNN
 24.02
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 583 of file BaseIterator.hpp.

Constructor & Destructor Documentation

◆ Float16Encoder() [1/2]

Float16Encoder ( Half data)
inline

Definition at line 586 of file BaseIterator.hpp.

587  : TypedIterator(data) {}

◆ Float16Encoder() [2/2]

Float16Encoder ( )
inline

Definition at line 589 of file BaseIterator.hpp.

590  : Float16Encoder(nullptr) {}

Member Function Documentation

◆ Get()

float Get ( ) const
inlineoverride

Definition at line 597 of file BaseIterator.hpp.

598  {
599  float val = 0.f;
601  return val;
602  }

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:589
armnn::TypedIterator< Half, Encoder< float > >::m_Iterator
Half * m_Iterator
Definition: BaseIterator.hpp:108
armnn::TypedIterator< Half, Encoder< float > >::TypedIterator
TypedIterator(Half *data=nullptr)
Definition: BaseIterator.hpp:69
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