From fd627ffaec8fd8801d980b4c91ee7c0607ab6aaf Mon Sep 17 00:00:00 2001 From: Jan Eilers Date: Thu, 25 Feb 2021 17:44:00 +0000 Subject: IVGCVSW-5687 Update Doxygen Docu * Update Doxygen Documentation for 21.02 release Signed-off-by: Jan Eilers Change-Id: I9ed2f9caab038836ea99d7b378d7899fe431a4e5 --- 21.02/classarmnn_1_1_float16_decoder.xhtml | 324 +++++++++++++++++++++++++++++ 1 file changed, 324 insertions(+) create mode 100644 21.02/classarmnn_1_1_float16_decoder.xhtml (limited to '21.02/classarmnn_1_1_float16_decoder.xhtml') diff --git a/21.02/classarmnn_1_1_float16_decoder.xhtml b/21.02/classarmnn_1_1_float16_decoder.xhtml new file mode 100644 index 0000000000..6b77bfeaf8 --- /dev/null +++ b/21.02/classarmnn_1_1_float16_decoder.xhtml @@ -0,0 +1,324 @@ + + + + + + + + + + + + + +ArmNN: Float16Decoder Class Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  21.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
Float16Decoder Class Reference
+
+
+ +

#include <BaseIterator.hpp>

+
+Inheritance diagram for Float16Decoder:
+
+
+ + +TypedIterator< const Half, Decoder< float > > +Decoder< float > +BaseIterator + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

 Float16Decoder (const Half *data)
 
 Float16Decoder ()
 
float Get () const override
 
std::vector< float > DecodeTensor (const TensorShape &tensorShape, const unsigned int channelMultiplier, const bool isDepthwise) override
 
- Public Member Functions inherited from TypedIterator< const Half, Decoder< float > >
 TypedIterator (const 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 Decoder< float >
 Decoder ()
 
virtual ~Decoder ()
 
- Public Member Functions inherited from BaseIterator
 BaseIterator ()
 
virtual ~BaseIterator ()
 
+ + + + + + +

+Additional Inherited Members

- Protected Attributes inherited from TypedIterator< const Half, Decoder< float > >
const Halfm_Iterator
 
const Halfm_Start
 
+

Detailed Description

+
+

Definition at line 315 of file BaseIterator.hpp.

+

Constructor & Destructor Documentation

+ +

◆ Float16Decoder() [1/2]

+ +
+
+ + + + + +
+ + + + + + + + +
Float16Decoder (const Halfdata)
+
+inline
+
+ +

Definition at line 318 of file BaseIterator.hpp.

+
319  : TypedIterator(data) {}
+
+
+
+ +

◆ Float16Decoder() [2/2]

+ +
+
+ + + + + +
+ + + + + + + +
Float16Decoder ()
+
+inline
+
+ +

Definition at line 321 of file BaseIterator.hpp.

+
322  : Float16Decoder(nullptr) {}
+
+
+
+

Member Function Documentation

+ +

◆ DecodeTensor()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
std::vector<float> DecodeTensor (const TensorShapetensorShape,
const unsigned int channelMultiplier,
const bool isDepthwise 
)
+
+inlineoverridevirtual
+
+ +

Implements Decoder< float >.

+ +

Definition at line 330 of file BaseIterator.hpp.

+ +

References FloatingPointConverter::ConvertFloat16To32(), TensorShape::GetNumElements(), armnn::IgnoreUnused(), and BaseIterator::operator[]().

+
333  {
334  IgnoreUnused(channelMultiplier, isDepthwise);
335 
336  const unsigned int size = tensorShape.GetNumElements();
337  std::vector<float> decodedTensor;
338  decodedTensor.reserve(size);
339 
340  for (uint32_t i = 0; i < size; ++i)
341  {
342  float val = 0.f;
343  this->operator[](i);
345  decodedTensor.emplace_back(val);
346  }
347 
348  return decodedTensor;
349  }
+
void IgnoreUnused(Ts &&...)
+
TypedIterator & operator[](const unsigned int index) override
+
static void ConvertFloat16To32(const void *srcFloat16Buffer, size_t numElements, float *dstFloat32Buffer)
+
+
+
+ +

◆ Get()

+ +
+
+ + + + + +
+ + + + + + + +
float Get () const
+
+inlineoverridevirtual
+
+ +

Implements Decoder< float >.

+ +

Definition at line 324 of file BaseIterator.hpp.

+ +

References FloatingPointConverter::ConvertFloat16To32().

+
325  {
326  float val = 0.f;
328  return val;
329  }
+
static void ConvertFloat16To32(const void *srcFloat16Buffer, size_t numElements, float *dstFloat32Buffer)
+
+
+
+
The documentation for this class was generated from the following file: +
+
+ + + + -- cgit v1.2.1