ArmNN  NotReleased
Float16Encoder Class Reference

#include <BaseIterator.hpp>

Inheritance diagram for Float16Encoder:
TypedIterator< Half, Encoder< float > > Encoder< float > BaseIterator

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
 
TypedIteratorSetIndex (unsigned int index, unsigned int axisIndex=0) override
 
- Public Member Functions inherited from Encoder< float >
 Encoder ()
 
virtual ~Encoder ()
 
- 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 358 of file BaseIterator.hpp.

Constructor & Destructor Documentation

◆ Float16Encoder() [1/2]

Float16Encoder ( Half data)
inline

Definition at line 361 of file BaseIterator.hpp.

362  : TypedIterator(data) {}

◆ Float16Encoder() [2/2]

Float16Encoder ( )
inline

Definition at line 364 of file BaseIterator.hpp.

365  : Float16Encoder(nullptr) {}

Member Function Documentation

◆ Get()

float Get ( ) const
inlineoverridevirtual

Implements Encoder< float >.

Definition at line 372 of file BaseIterator.hpp.

References FloatingPointConverter::ConvertFloat16To32().

373  {
374  float val = 0.f;
376  return val;
377  }
static void ConvertFloat16To32(const void *srcFloat16Buffer, size_t numElements, float *dstFloat32Buffer)

◆ Set()

void Set ( float  right)
inlineoverridevirtual

Implements Encoder< float >.

Definition at line 367 of file BaseIterator.hpp.

References FloatingPointConverter::ConvertFloat32To16().

368  {
370  }
static void ConvertFloat32To16(const float *srcFloat32Buffer, size_t numElements, void *dstFloat16Buffer)

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